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
.-
Method Summary
Modifier and TypeMethodDescriptionboolean
isEquivalent
(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
-