Rectangle

struct HPS::Rectangle

Public Functions

inline HPS_INLINE float Area () const
inline HPS_INLINE float Aspect () const
inline HPS_INLINE Point2D Center () const
inline HPS_INLINE Rectangle & Circumscribe_Scope (Rectangle const &scope)
inline HPS_INLINE bool Contains (Point const &contained) const
inline HPS_INLINE bool Contains (Point2D const &contained) const
inline HPS_INLINE bool Contains (Rectangle const &rect)
inline HPS_INLINE bool Contains (Rectangle const &rect, float epsilon)
inline HPS_INLINE Rectangle & Contract (int border)
inline HPS_INLINE Rectangle & Contract (Rectangle const &rect)
inline HPS_INLINE bool Equals (Rectangle const &rect, int in_tolerance=32) const
inline HPS_INLINE Rectangle & Expand (float border)
inline HPS_INLINE Rectangle & Expand (int border)
inline HPS_INLINE Rectangle & Expand (Rectangle const &rect)
inline HPS_INLINE float Height () const
inline HPS_INLINE Rectangle & Inscribe_Scope (Rectangle const &scope)
inline HPS_INLINE Rectangle & Intersect (Rectangle const &rect)
inline HPS_INLINE bool Intersecting (Rectangle const &rect) const
inline HPS_INLINE void Merge (Point const &point)
inline HPS_INLINE void Merge (Point2D const &point)
inline HPS_INLINE void Merge (size_t count, Point const *points)
inline HPS_INLINE void Merge (size_t count, Point2D const *points)
inline HPS_INLINE bool operator!= (Rectangle const &rect) const
inline HPS_INLINE bool operator== (Rectangle const &rect) const
inline Rectangle()
inline Rectangle(float in_left, float in_right, float in_bottom, float in_top)
inline explicit Rectangle(IntRectangle const &that)
inline Rectangle(Rectangle const &that)
inline HPS_INLINE Rectangle(size_t count, Point const *points)
inline HPS_INLINE Rectangle(size_t count, Point2D const *points)
inline HPS_INLINE Rectangle & Union (Rectangle const &rect)
inline HPS_INLINE float Width () const

Public Members

float bottom
float left
float right
float top

Public Static Functions

static inline HPS_INLINE Rectangle FullScope ()
static inline HPS_INLINE Rectangle InvalidScope ()
static inline HPS_INLINE Rectangle Zero ()