#include <RTree.h>
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 |
Definition at line 45 of file RTree.h.
square the argument, while applying a type conversion to AreaType
Definition at line 60 of file RTree.h.
Referenced by getDistanceLineSquare(), getDistanceSquare(), and getMinimumDistanceSquare().
Definition at line 48 of file RTree.h.
Referenced by getDistanceLineSquare(), getDistanceSquare(), and getMinimumDistanceSquare().
Definition at line 48 of file RTree.h.
Referenced by getDistanceLineSquare(), getDistanceSquare(), and getMinimumDistanceSquare().