#include <hps.h>
Public Member Functions | |
Rectangle () | |
Rectangle (float in_left, float in_right, float in_bottom, float in_top) | |
Rectangle (Rectangle const &that) | |
Rectangle (IntRectangle const &that) | |
HPS_INLINE | Rectangle (size_t count, Point const *points) |
HPS_INLINE | Rectangle (size_t count, Point2D const *points) |
HPS_INLINE float | Width () const |
HPS_INLINE float | Height () const |
HPS_INLINE float | Area () const |
HPS_INLINE float | Aspect () const |
HPS_INLINE Point2D | Center () const |
HPS_INLINE void | Merge (size_t count, Point const *points) |
HPS_INLINE void | Merge (Point const &point) |
HPS_INLINE void | Merge (size_t count, Point2D const *points) |
HPS_INLINE void | Merge (Point2D const &point) |
HPS_INLINE bool | operator== (Rectangle const &rect) const |
HPS_INLINE bool | operator!= (Rectangle const &rect) const |
HPS_INLINE bool | Equals (Rectangle const &rect, int in_tolerance=32) const |
HPS_INLINE bool | Intersecting (Rectangle const &rect) const |
HPS_INLINE bool | Contains (Point const &contained) const |
HPS_INLINE bool | Contains (Point2D const &contained) const |
HPS_INLINE bool | Contains (Rectangle const &rect) |
HPS_INLINE bool | Contains (Rectangle const &rect, float epsilon) |
HPS_INLINE Rectangle & | Expand (float border) |
HPS_INLINE Rectangle & | Expand (int border) |
HPS_INLINE Rectangle & | Expand (Rectangle const &rect) |
HPS_INLINE Rectangle & | Contract (int border) |
HPS_INLINE Rectangle & | Contract (Rectangle const &rect) |
HPS_INLINE Rectangle & | Intersect (Rectangle const &rect) |
HPS_INLINE Rectangle & | Union (Rectangle const &rect) |
HPS_INLINE Rectangle & | Inscribe_Scope (Rectangle const &scope) |
HPS_INLINE Rectangle & | Circumscribe_Scope (Rectangle const &scope) |
Static Public Member Functions | |
static HPS_INLINE Rectangle | FullScope () |
static HPS_INLINE Rectangle | InvalidScope () |
static HPS_INLINE Rectangle | Zero () |
Public Attributes | |
float | left |
float | right |
float | bottom |
float | top |
|
inline |
|
inline |
|
inline |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
float HPS::Rectangle::bottom |
float HPS::Rectangle::left |
float HPS::Rectangle::right |
float HPS::Rectangle::top |