public class ExactPositionEquality extends Object
PositionEquality
implementation that considers two Position
s to be equal if and only if
the have the same coordinates.
dimensions.Constructor and Description |
---|
ExactPositionEquality() |
Modifier and Type | Method and Description |
---|---|
<P extends Position> |
equals(double[] first,
double[] second)
Tests whether the specified coordinates represent the same point.
|
protected boolean |
equals(double co1,
double co2) |
<P extends Position> |
equals(P first,
P second)
Tests whether the specified
Coordinates s are equal. |
<P extends Position> |
equals2D(P first,
P second)
Tests whether the specified
Coordinates s are equal in the base 2D-CoordinateReferenceSystem. |
protected boolean equals(double co1, double co2)
public <P extends Position> boolean equals(P first, P second)
Coordinates
s are equal.equals
in interface PositionEquality
first
- first Point
second
- second Point
Positoin
.public <P extends Position> boolean equals2D(P first, P second)
PositionEquality
Coordinates
s are equal in the base 2D-CoordinateReferenceSystem.equals2D
in interface PositionEquality
first
- first Point
second
- second Point
Position
.public <P extends Position> boolean equals(double[] first, double[] second)
equals
in interface PositionEquality
first
- the first coordinate arraysecond
- the second coordinate arraycoordinates
s are equalCopyright © 2018 geolatte.org. All rights reserved.