Package org.geolatte.geom
Class ApproximateGeometryEquality
- java.lang.Object
-
- org.geolatte.geom.GeometryPositionEquality
-
- org.geolatte.geom.ApproximateGeometryEquality
-
- All Implemented Interfaces:
GeometryEquality
public class ApproximateGeometryEquality extends GeometryPositionEquality
Created by Karel Maesen, Geovise BVBA on 2019-03-27.
-
-
Constructor Summary
Constructors Constructor Description ApproximateGeometryEquality(double precision)Constructs an instance that determines equality by comparing the positions to within the specified precision
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <P extends Position>
booleanequals(Geometry<P> first, Geometry<P> second)Checks whether the first geometry equals the second, for some definition of equality.
-
-
-
Method Detail
-
equals
public <P extends Position> boolean equals(Geometry<P> first, Geometry<P> second)
Description copied from class:GeometryPositionEqualityChecks whether the first geometry equals the second, for some definition of equality.- Specified by:
equalsin interfaceGeometryEquality- Overrides:
equalsin classGeometryPositionEquality- Parameters:
first- aGeometrysecond- a secondGeometry- Returns:
- true if and only if both both
Geometrys are equal.
-
-