38 CRect(
const float l,
const float t,
const float r,
const float b);
Rectangle class used for screen rectangles.
Definition: Rect.h:31
bool PointInside(const CVector2D &point) const
Evalutates if point is within the rectangle.
Definition: Rect.cpp:210
bool operator==(const CRect &a) const
Definition: Rect.cpp:69
CRect operator-() const
Definition: Rect.cpp:82
CSize2D GetSize() const
Get Size.
Definition: Rect.cpp:180
CVector2D BottomLeft() const
Get Position equivalent to bottom/left corner.
Definition: Rect.cpp:195
void operator-=(const CRect &a)
Definition: Rect.cpp:146
CVector2D BottomRight() const
Get Position equivalent to bottom/right corner.
Definition: Rect.cpp:200
float left
Returning CVector2D representing each corner.
Definition: Rect.h:118
bool operator!=(const CRect &a) const
Definition: Rect.cpp:77
CVector2D TopLeft() const
Get Position equivalent to top/left corner.
Definition: Rect.cpp:185
float bottom
Definition: Rect.h:118
float GetHeight() const
Definition: Rect.cpp:175
CRect operator+() const
Definition: Rect.cpp:87
void operator+=(const CRect &a)
Definition: Rect.cpp:122
float top
Definition: Rect.h:118
CRect Scale(float x, float y) const
Definition: Rect.cpp:218
float GetWidth() const
Definition: Rect.cpp:170
CRect()
Definition: Rect.cpp:25
CVector2D TopRight() const
Get Position equivalent to top/right corner.
Definition: Rect.cpp:190
float right
Definition: Rect.h:118
CRect & operator=(const CRect &a)
Definition: Rect.cpp:60
CVector2D CenterPoint() const
Get Position equivalent to the center of the rectangle.
Definition: Rect.cpp:205
Definition: Vector2D.h:32