Package org.geolatte.geom
Interface PositionEquality
-
- All Known Implementing Classes:
ExactPositionEquality,WithinTolerancePositionEquality
public interface PositionEqualityA Test forPositionequality.Implementations must be thread-safe.
- Author:
- Karel Maesen, Geovise BVBA creation-date: 4/13/12
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <P extends Position>
booleanequals(double[] first, double[] second)Tests whether the specified coordinates represent the same point.<P extends Position>
booleanequals(P first, P second)Tests whether the specifiedCoordinatess are equal.<P extends Position>
booleanequals2D(P first, P second)Tests whether the specifiedCoordinatess are equal in the base 2D-CoordinateReferenceSystem.
-
-
-
Method Detail
-
equals
<P extends Position> boolean equals(P first, P second)
Tests whether the specifiedCoordinatess are equal.- Parameters:
first- firstPointsecond- secondPoint- Returns:
- true iff the first is equal to the second
Positoin.
-
equals2D
<P extends Position> boolean equals2D(P first, P second)
Tests whether the specifiedCoordinatess are equal in the base 2D-CoordinateReferenceSystem.- Parameters:
first- firstPointsecond- secondPoint- Returns:
- true iff the first is equal to the second
Position.
-
equals
<P extends Position> boolean equals(double[] first, double[] second)
Tests whether the specified coordinates represent the same point.- Parameters:
first- the first coordinate arraysecond- the second coordinate array- Returns:
- true iff the
coordinatess are equal - Throws:
IllegalArgumentException- when a NULL-argument is passed, or a coordinate array is passed that is smaller than the coordinate dimensions of its corresponding Position Reference System.
-
-