Interface SpatialPartition.EquivalenceRelation
- Enclosing class:
SpatialPartition
public static interface SpatialPartition.EquivalenceRelation
An interface for a function to compute an equivalence relation.
An equivalence relation must be symmetric, reflexive and transitive.
Examples are
intersects or withinDistance.- Author:
- mdavis
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisEquivalent(int i, int j) Tests whether two geometry items are equivalent to each other under the relation.
-
Method Details
-
isEquivalent
boolean isEquivalent(int i, int j) Tests whether two geometry items are equivalent to each other under the relation.- Parameters:
i- the index of a geometryj- the index of another geometry- Returns:
- true if the geometry items are equivalent
-