VGServer::RTree::Point Class Reference

a two dimensional point More...

#include <RTree.h>

List of all members.

Public Member Functions

AreaType getDistanceLineSquare (CoordType x1, CoordType y1, CoordType x2, CoordType y2) const
 calculate the minimum distance to this line. dont use sqrt()
AreaType getDistanceSquare (CoordType px, CoordType py) const
 calculate the distance to another point. dont use sqrt().
AreaType getDistanceSquare (const Point &p) const
 calculate the distance to another point. dont use sqrt().
AreaType getMinimumDistanceSquare (const class Rect &r) const
 calculate the minimum distance to the rectangle. dont use sqrt().
 Point (CoordType _x, CoordType _y)
 initializing constructor
 Point ()
 noop constructor

Static Public Member Functions

static AreaType square (AreaType a)
 square the argument, while applying a type conversion to AreaType

Public Attributes

CoordType x
CoordType y


Detailed Description

a two dimensional point

Definition at line 45 of file RTree.h.


Constructor & Destructor Documentation

VGServer::RTree::Point::Point (  )  [inline]

noop constructor

Definition at line 51 of file RTree.h.

VGServer::RTree::Point::Point ( CoordType  _x,
CoordType  _y 
) [inline]

initializing constructor

Definition at line 55 of file RTree.h.


Member Function Documentation

AreaType VGServer::RTree::Point::getDistanceLineSquare ( CoordType  x1,
CoordType  y1,
CoordType  x2,
CoordType  y2 
) const [inline]

calculate the minimum distance to this line. dont use sqrt()

Definition at line 92 of file RTree.h.

References square(), x, and y.

AreaType VGServer::RTree::Point::getDistanceSquare ( CoordType  px,
CoordType  py 
) const [inline]

calculate the distance to another point. dont use sqrt().

Definition at line 71 of file RTree.h.

References square(), x, and y.

AreaType VGServer::RTree::Point::getDistanceSquare ( const Point p  )  const [inline]

calculate the distance to another point. dont use sqrt().

Definition at line 64 of file RTree.h.

References square(), x, and y.

Referenced by VGServer::RTree::Tree< _DataType, _DataTypeCallback >::Node< VGServer::RTree::Tree::InnerNodeData >::reinsertData().

AreaType VGServer::RTree::Point::getMinimumDistanceSquare ( const class Rect r  )  const [inline]

calculate the minimum distance to the rectangle. dont use sqrt().

Definition at line 78 of file RTree.h.

References square(), x, and y.

Referenced by VGServer::RTree::Tree< _DataType, _DataTypeCallback >::queryNearestNeighbor().

static AreaType VGServer::RTree::Point::square ( AreaType  a  )  [inline, static]

square the argument, while applying a type conversion to AreaType

Definition at line 60 of file RTree.h.

Referenced by getDistanceLineSquare(), getDistanceSquare(), and getMinimumDistanceSquare().


Member Data Documentation

CoordType VGServer::RTree::Point::x

Definition at line 48 of file RTree.h.

Referenced by getDistanceLineSquare(), getDistanceSquare(), and getMinimumDistanceSquare().

CoordType VGServer::RTree::Point::y

Definition at line 48 of file RTree.h.

Referenced by getDistanceLineSquare(), getDistanceSquare(), and getMinimumDistanceSquare().


The documentation for this class was generated from the following file:
Generated on Wed Sep 27 14:34:01 2006 for VGServer by  doxygen 1.4.7