Package org.khelekore.prtree
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getDimensions()
double
getMax(int axis, T t)
Get the maximum coordinate value for the given tdouble
getMin(int axis, T t)
Get the minimum coordinate value for the given t.
-
-
-
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 fort
- 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 fort
- the object to get the mbr ordinate for- Returns:
- the max value for the given axis
-
-