Interface MBRConverter<T>

  • Type Parameters:
    T - the data type stored in the PRTree
    All Superinterfaces:
    Serializable
    All Known Implementing Classes:
    PRTreeFeatureIndexer

    public interface MBRConverter<T>
    extends Serializable
    A class that given a T can tell the minimum and maximum ordinates for that object.
    • Method Detail

      • getDimensions

        int getDimensions()
        Returns:
        the number of dimensions this converter cares about
      • getMin

        double getMin​(int axis,
                      T t)
        Get the minimum coordinate value for the given t.
        Parameters:
        axis - the axis to get the min value for
        t - the object to get the mbr ordinate for
        Returns:
        the min value for the given axis
      • getMax

        double getMax​(int axis,
                      T t)
        Get the maximum coordinate value for the given t
        Parameters:
        axis - the axis to get the max value for
        t - the object to get the mbr ordinate for
        Returns:
        the max value for the given axis