Hoops Visualize HPS  version 2018-SP2
Hoops Visualize HPS 3D Rendering Engine
Looking for a senior C++ dev?
I'm looking for work. Hire me!
HPS::Rectangle Struct Reference

#include <hps.h>

Collaboration diagram for HPS::Rectangle:

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 RectangleExpand (float border)
 
HPS_INLINE RectangleExpand (int border)
 
HPS_INLINE RectangleExpand (Rectangle const &rect)
 
HPS_INLINE RectangleContract (int border)
 
HPS_INLINE RectangleContract (Rectangle const &rect)
 
HPS_INLINE RectangleIntersect (Rectangle const &rect)
 
HPS_INLINE RectangleUnion (Rectangle const &rect)
 
HPS_INLINE RectangleInscribe_Scope (Rectangle const &scope)
 
HPS_INLINE RectangleCircumscribe_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
 

Constructor & Destructor Documentation

◆ Rectangle() [1/6]

HPS::Rectangle::Rectangle ( )
inline

◆ Rectangle() [2/6]

HPS::Rectangle::Rectangle ( float  in_left,
float  in_right,
float  in_bottom,
float  in_top 
)
inline

◆ Rectangle() [3/6]

HPS::Rectangle::Rectangle ( Rectangle const &  that)
inline

◆ Rectangle() [4/6]

HPS::Rectangle::Rectangle ( IntRectangle const &  that)
inlineexplicit

◆ Rectangle() [5/6]

HPS_INLINE HPS::Rectangle::Rectangle ( size_t  count,
Point const *  points 
)
inline

◆ Rectangle() [6/6]

HPS_INLINE HPS::Rectangle::Rectangle ( size_t  count,
Point2D const *  points 
)
inline

Member Function Documentation

◆ Area()

HPS_INLINE float HPS::Rectangle::Area ( ) const
inline

◆ Aspect()

HPS_INLINE float HPS::Rectangle::Aspect ( ) const
inline

◆ Center()

HPS_INLINE Point2D HPS::Rectangle::Center ( ) const
inline

◆ Circumscribe_Scope()

HPS_INLINE Rectangle& HPS::Rectangle::Circumscribe_Scope ( Rectangle const &  scope)
inline
Here is the caller graph for this function:

◆ Contains() [1/4]

HPS_INLINE bool HPS::Rectangle::Contains ( Point const &  contained) const
inline

◆ Contains() [2/4]

HPS_INLINE bool HPS::Rectangle::Contains ( Point2D const &  contained) const
inline

◆ Contains() [3/4]

HPS_INLINE bool HPS::Rectangle::Contains ( Rectangle const &  rect)
inline

◆ Contains() [4/4]

HPS_INLINE bool HPS::Rectangle::Contains ( Rectangle const &  rect,
float  epsilon 
)
inline

◆ Contract() [1/2]

HPS_INLINE Rectangle& HPS::Rectangle::Contract ( int  border)
inline
Here is the caller graph for this function:

◆ Contract() [2/2]

HPS_INLINE Rectangle& HPS::Rectangle::Contract ( Rectangle const &  rect)
inline

◆ Equals()

HPS_INLINE bool HPS::Rectangle::Equals ( Rectangle const &  rect,
int  in_tolerance = 32 
) const
inline
Here is the call graph for this function:

◆ Expand() [1/3]

HPS_INLINE Rectangle& HPS::Rectangle::Expand ( float  border)
inline
Here is the caller graph for this function:

◆ Expand() [2/3]

HPS_INLINE Rectangle& HPS::Rectangle::Expand ( int  border)
inline
Here is the call graph for this function:

◆ Expand() [3/3]

HPS_INLINE Rectangle& HPS::Rectangle::Expand ( Rectangle const &  rect)
inline

◆ FullScope()

static HPS_INLINE Rectangle HPS::Rectangle::FullScope ( )
inlinestatic

◆ Height()

HPS_INLINE float HPS::Rectangle::Height ( ) const
inline

◆ Inscribe_Scope()

HPS_INLINE Rectangle& HPS::Rectangle::Inscribe_Scope ( Rectangle const &  scope)
inline
Here is the caller graph for this function:

◆ Intersect()

HPS_INLINE Rectangle& HPS::Rectangle::Intersect ( Rectangle const &  rect)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Intersecting()

HPS_INLINE bool HPS::Rectangle::Intersecting ( Rectangle const &  rect) const
inline

◆ InvalidScope()

static HPS_INLINE Rectangle HPS::Rectangle::InvalidScope ( )
inlinestatic

◆ Merge() [1/4]

HPS_INLINE void HPS::Rectangle::Merge ( size_t  count,
Point const *  points 
)
inline
Here is the call graph for this function:

◆ Merge() [2/4]

HPS_INLINE void HPS::Rectangle::Merge ( Point const &  point)
inline
Here is the call graph for this function:

◆ Merge() [3/4]

HPS_INLINE void HPS::Rectangle::Merge ( size_t  count,
Point2D const *  points 
)
inline
Here is the call graph for this function:

◆ Merge() [4/4]

HPS_INLINE void HPS::Rectangle::Merge ( Point2D const &  point)
inline
Here is the call graph for this function:

◆ operator!=()

HPS_INLINE bool HPS::Rectangle::operator!= ( Rectangle const &  rect) const
inline

◆ operator==()

HPS_INLINE bool HPS::Rectangle::operator== ( Rectangle const &  rect) const
inline

◆ Union()

HPS_INLINE Rectangle& HPS::Rectangle::Union ( Rectangle const &  rect)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Width()

HPS_INLINE float HPS::Rectangle::Width ( ) const
inline

◆ Zero()

static HPS_INLINE Rectangle HPS::Rectangle::Zero ( )
inlinestatic

Member Data Documentation

◆ bottom

float HPS::Rectangle::bottom

◆ left

float HPS::Rectangle::left

◆ right

float HPS::Rectangle::right

◆ top

float HPS::Rectangle::top

The documentation for this struct was generated from the following file: