org.geotools.caching.spatialindex
Class Point

java.lang.Object
  extended by org.geotools.caching.spatialindex.Point
All Implemented Interfaces:
java.lang.Cloneable, Shape

public class Point
extends java.lang.Object
implements Shape, java.lang.Cloneable


Field Summary
 double[] m_pCoords
           
 
Constructor Summary
Point(double[] pCoords)
           
Point(Point pt)
           
 
Method Summary
 java.lang.Object clone()
           
 boolean contains(Shape s)
           
 boolean equals(java.lang.Object o)
           
 double getArea()
           
 double[] getCenter()
           
 double getCoord(int index)
           
 int getDimension()
           
 Region getMBR()
           
 double getMinimumDistance(Shape s)
           
 boolean intersects(Shape s)
           
 boolean touches(Shape s)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_pCoords

public double[] m_pCoords
Constructor Detail

Point

public Point(double[] pCoords)

Point

public Point(Point pt)
Method Detail

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

intersects

public boolean intersects(Shape s)
Specified by:
intersects in interface Shape

contains

public boolean contains(Shape s)
Specified by:
contains in interface Shape

touches

public boolean touches(Shape s)
Specified by:
touches in interface Shape

getCenter

public double[] getCenter()
Specified by:
getCenter in interface Shape

getDimension

public int getDimension()
Specified by:
getDimension in interface Shape

getMBR

public Region getMBR()
Specified by:
getMBR in interface Shape

getArea

public double getArea()
Specified by:
getArea in interface Shape

getMinimumDistance

public double getMinimumDistance(Shape s)
Specified by:
getMinimumDistance in interface Shape

getCoord

public double getCoord(int index)
                throws java.lang.IndexOutOfBoundsException
Throws:
java.lang.IndexOutOfBoundsException


Copyright © 1996-2010 Geotools. All Rights Reserved.