Savarese Software Research Corporation

com.savarese.spatial
Interface Point<Coord extends java.lang.Comparable<? super Coord>>

All Known Implementing Classes:
GenericPoint

public interface Point<Coord extends java.lang.Comparable<? super Coord>>

The Point interface represents a point in a k-dimensional space. It is used to specify point keys that index into spatial data structures.


Method Summary
 Coord getCoord(int dimension)
          Returns the value of the coordinate of the given dimension.
 int getDimensions()
          Returns the number of dimensions in the point.
 

Method Detail

getCoord

Coord getCoord(int dimension)
Returns the value of the coordinate of the given dimension.

Returns:
The value of the coordinate of the given dimension.
Throws:
java.lang.IllegalArgumentException - if the Point does not support the dimension.

getDimensions

int getDimensions()
Returns the number of dimensions in the point.

Returns:
The number of dimensions in the point.

Savarese Software Research Corporation

Copyright © 2001-2005 Daniel F. Savarese
Copyright © 2006-2010 Savarese Software Research Corporation