|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
#include <point.H>
Public Member Functions | |
| const Geom_Number & | get_xmin () const |
| const Geom_Number & | get_ymin () const |
| const Geom_Number & | get_xmax () const |
| const Geom_Number & | get_ymax () const |
| Rectangle () | |
| Rectangle (const Geom_Number &__xmin, const Geom_Number &__ymin, const Geom_Number &__xmax, const Geom_Number &__ymax) | |
| void | set_rect (const Geom_Number &__xmin, const Geom_Number &__ymin, const Geom_Number &__xmax, const Geom_Number &__ymax) |
| Geom_Number | width () const |
| Geom_Number | height () const |
| bool | intersects (const Rectangle &that) const |
| Geom_Number | distance_squared_to (const Point &p) const |
| Geom_Number | distance_to (const Point &p) const |
| bool | contains (const Point &p) const |
Private Attributes | |
| Geom_Number | xmin |
| Geom_Number | ymin |
| Geom_Number | xmax |
| Geom_Number | ymax |
|
inline |
|
inline |
Definition at line 1069 of file point.H.
References Point::get_x(), Point::get_y(), xmax, xmin, ymax, and ymin.
Referenced by K2Tree< T >::range(), and TEST().
|
inline |
Definition at line 1046 of file point.H.
References Point::get_x(), Point::get_y(), xmax, xmin, ymax, and ymin.
Referenced by K2Tree< T >::bu_nearest(), distance_to(), and K2Tree< T >::lr_nearest().
|
inline |
Definition at line 1063 of file point.H.
References distance_squared_to(), and sqrt().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 1023 of file point.H.
References ah_range_error_if, xmax, xmin, ymax, and ymin.
Referenced by K2Tree< T >::Node::set_rect(), and K2Tree< T >::Node::set_rect().
|
inline |
|
private |
Definition at line 1000 of file point.H.
Referenced by Rectangle(), contains(), distance_squared_to(), get_xmax(), intersects(), set_rect(), and width().
|
private |
Definition at line 999 of file point.H.
Referenced by Rectangle(), contains(), distance_squared_to(), get_xmin(), intersects(), set_rect(), and width().
|
private |
Definition at line 1000 of file point.H.
Referenced by Rectangle(), contains(), distance_squared_to(), get_ymax(), height(), intersects(), and set_rect().
|
private |
Definition at line 999 of file point.H.
Referenced by Rectangle(), contains(), distance_squared_to(), get_ymin(), height(), intersects(), and set_rect().