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::IntRectangle Struct Reference

#include <hps.h>

Collaboration diagram for HPS::IntRectangle:

Public Member Functions

 IntRectangle ()
 
 IntRectangle (int in_left, int in_right, int in_bottom, int in_top)
 
 IntRectangle (IntRectangle const &that)
 
 IntRectangle (Rectangle const &that)
 
bool operator== (IntRectangle const &rect) const
 
bool operator!= (IntRectangle const &rect) const
 
HPS_INLINE int PixelWidth () const
 
HPS_INLINE int PixelHeight () const
 
HPS_INLINE int Width () const
 
HPS_INLINE int Height () const
 
HPS_INLINE int Area () const
 
HPS_INLINE float Aspect () const
 
HPS_INLINE Point2D Center () const
 
HPS_INLINE bool Intersecting (IntRectangle const &rect) const
 
HPS_INLINE bool Contains (IntRectangle const &rect) const
 
HPS_INLINE IntRectangleExpand (int border)
 
HPS_INLINE IntRectangleExpand (IntRectangle const &rect)
 
HPS_INLINE IntRectangleContract (int border)
 
HPS_INLINE IntRectangleContract (IntRectangle const &rect)
 
HPS_INLINE IntRectangleIntersect (IntRectangle const &rect)
 
HPS_INLINE IntRectangleUnion (IntRectangle const &rect)
 

Static Public Member Functions

static HPS_INLINE IntRectangle Invalid ()
 
static HPS_INLINE IntRectangle Zero ()
 

Public Attributes

int left
 
int right
 
int bottom
 
int top
 

Constructor & Destructor Documentation

◆ IntRectangle() [1/4]

HPS::IntRectangle::IntRectangle ( )
inline

◆ IntRectangle() [2/4]

HPS::IntRectangle::IntRectangle ( int  in_left,
int  in_right,
int  in_bottom,
int  in_top 
)
inline

◆ IntRectangle() [3/4]

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

◆ IntRectangle() [4/4]

HPS_INLINE HPS::IntRectangle::IntRectangle ( Rectangle const &  that)
explicit

Member Function Documentation

◆ Area()

HPS_INLINE int HPS::IntRectangle::Area ( ) const
inline

◆ Aspect()

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

◆ Center()

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

◆ Contains()

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

◆ Contract() [1/2]

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

◆ Contract() [2/2]

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

◆ Expand() [1/2]

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

◆ Expand() [2/2]

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

◆ Height()

HPS_INLINE int HPS::IntRectangle::Height ( ) const
inline

◆ Intersect()

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

◆ Intersecting()

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

◆ Invalid()

static HPS_INLINE IntRectangle HPS::IntRectangle::Invalid ( )
inlinestatic
Here is the caller graph for this function:

◆ operator!=()

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

◆ operator==()

bool HPS::IntRectangle::operator== ( IntRectangle const &  rect) const
inline

◆ PixelHeight()

HPS_INLINE int HPS::IntRectangle::PixelHeight ( ) const
inline

◆ PixelWidth()

HPS_INLINE int HPS::IntRectangle::PixelWidth ( ) const
inline

◆ Union()

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

◆ Width()

HPS_INLINE int HPS::IntRectangle::Width ( ) const
inline

◆ Zero()

static HPS_INLINE IntRectangle HPS::IntRectangle::Zero ( )
inlinestatic
Here is the caller graph for this function:

Member Data Documentation

◆ bottom

int HPS::IntRectangle::bottom

◆ left

int HPS::IntRectangle::left

◆ right

int HPS::IntRectangle::right

◆ top

int HPS::IntRectangle::top

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