Polyphase Game Engine
Loading...
Searching...
No Matches
Rect Class Reference

#include <Rect.h>

Public Member Functions

 Rect ()
 
 Rect (float x, float y, float width, float height)
 
bool ContainsPoint (float x, float y) const
 
bool OverlapsRect (const Rect &otherRect) const
 
void Clamp (const Rect &otherRect)
 
float Top () const
 
float Bottom () const
 
float Left () const
 
float Right () const
 

Public Attributes

float mX
 
float mY
 
float mWidth
 
float mHeight
 

Constructor & Destructor Documentation

◆ Rect() [1/2]

Rect::Rect ( )

◆ Rect() [2/2]

Rect::Rect ( float  x,
float  y,
float  width,
float  height 
)

Member Function Documentation

◆ Bottom()

float Rect::Bottom ( ) const
inline

◆ Clamp()

void Rect::Clamp ( const Rect otherRect)

◆ ContainsPoint()

bool Rect::ContainsPoint ( float  x,
float  y 
) const

◆ Left()

float Rect::Left ( ) const
inline

◆ OverlapsRect()

bool Rect::OverlapsRect ( const Rect otherRect) const

◆ Right()

float Rect::Right ( ) const
inline

◆ Top()

float Rect::Top ( ) const
inline

Member Data Documentation

◆ mHeight

float Rect::mHeight

◆ mWidth

float Rect::mWidth

◆ mX

float Rect::mX

◆ mY

float Rect::mY

The documentation for this class was generated from the following files: