public class WithinTolerancePositionEquality extends Object
PositionEquality
that considers Point
s to be equal when their coordinates
are within a specified tolerance of each other.Constructor and Description |
---|
WithinTolerancePositionEquality(double tolerance)
Constructs an instance
|
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. |
public WithinTolerancePositionEquality(double tolerance)
tolerance
- the tolerance within which coordinates are considered equalprotected 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 © 2023 geolatte.org. All rights reserved.