Module math

Interface SpatialComparable

All Known Subinterfaces:
NumberVector<N>
All Known Implementing Classes:
Polygon, Vector

public interface SpatialComparable
Defines the required methods needed for comparison of spatial objects.
Author:
Elke Achtert
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    int
    Returns the dimensionality of the object.
    double
    getMax(int dimension)
    Returns the maximum coordinate at the specified dimension.
    double
    getMin(int dimension)
    Returns the minimum coordinate at the specified dimension.
  • Method Details Link icon

    • getDimensionality Link icon

      int getDimensionality()
      Returns the dimensionality of the object.
      Returns:
      the dimensionality
    • getMin Link icon

      double getMin(int dimension)
      Returns the minimum coordinate at the specified dimension.
      Parameters:
      dimension - the dimension for which the coordinate should be returned, where 0 ≤ dimension < getDimensionality()
      Returns:
      the minimum coordinate at the specified dimension
    • getMax Link icon

      double getMax(int dimension)
      Returns the maximum coordinate at the specified dimension.
      Parameters:
      dimension - the dimension for which the coordinate should be returned, where 0 ≤ dimension < getDimensionality()
      Returns:
      the maximum coordinate at the specified dimension