org.khelekore.prtree
Interface MBRConverter<T>

Type Parameters:
T - the data type stored in the PRTree

public interface MBRConverter<T>

A class that given a T can tell the minimum and maximum ordinates for that object.


Method Summary
 int getDimensions()
           
 double getMax(int axis, T t)
          Get the maximum coordinate value for the given t
 double 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 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