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

    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

    • getDimensionality

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

      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

      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