|
"L. Spiro Engine"
|
#include <LSMRect2.h>
Public Member Functions | |
| LSE_INLINE LSE_CALLCTOR | CRect2 (LSREAL _fX0, LSREAL _fX1, LSREAL _fY0, LSREAL _fY1) |
| LSE_INLINE LSREAL LSE_FCALL | SizeX () const |
| LSE_INLINE LSREAL LSE_FCALL | SizeY () const |
| LSE_INLINE CVector2 LSE_FCALL | Size () const |
| LSE_INLINE LSVOID LSE_FCALL | Clear () |
| LSE_INLINE LSVOID LSE_FCALL | NegativeBox () |
| LSE_INLINE LSVOID LSE_FCALL | EnclosePoint (const CVector2 &_vPoint) |
| LSE_INLINE LSVOID LSE_FCALL | EncloseBox (const CRect2 &_rRect) |
Public Attributes | |
| LSREAL | x0 |
| LSREAL | x1 |
| LSREAL | y0 |
| LSREAL | y1 |
Class CRect2
Description: A simple axis-aligned 2D rectanagle.
| LSE_INLINE LSVOID LSE_FCALL lsm::CRect2::Clear | ( | ) |
Sets the rectangle to all 0's.
| LSE_INLINE LSVOID LSE_FCALL lsm::CRect2::EncloseBox | ( | const CRect2 & | _rRect | ) |
Resize to fit around another box, assuming *0 are mins and *1 are maxes.
| _rRect | The box to enclose. |
| LSE_INLINE LSVOID LSE_FCALL lsm::CRect2::EnclosePoint | ( | const CVector2 & | _vPoint | ) |
Resize to enclose the given point.
| _vPoint | The point to enclose. |
| LSE_INLINE LSVOID LSE_FCALL lsm::CRect2::NegativeBox | ( | ) |
Set to infitely small negative size.
| LSE_INLINE CVector2 LSE_FCALL lsm::CRect2::Size | ( | ) | const |
Returns the size of the box along both the X and Y world axes.
| LSE_INLINE LSREAL LSE_FCALL lsm::CRect2::SizeX | ( | ) | const |
Returns the size of the box along the X world axis.
| LSE_INLINE LSREAL LSE_FCALL lsm::CRect2::SizeY | ( | ) | const |
Returns the size of the box along the Y world axis.
| LSREAL lsm::CRect2::x0 |
The X extents.
| LSREAL lsm::CRect2::y0 |
The Y extents.
1.7.3