Savarese Software Research

com.savarese.algorithms.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.

Author:
Daniel F. Savarese

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

Copyright © 2004-2005 Savarese Software Research and Daniel F. Savarese. All Rights Reserved.