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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean isEquivalent​(int i, int j)
      Tests whether two geometry items are equivalent to each other under the relation.
    • Method Detail

      • 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 geometry
        j - the index of another geometry
        Returns:
        true if the geometry items are equivalent