"L. Spiro Engine"
Public Member Functions | Public Attributes

lsm::CRect2 Class Reference

#include <LSMRect2.h>

List of all members.

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

Detailed Description

Class CRect2

Description: A simple axis-aligned 2D rectanagle.


Member Function Documentation

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.

Parameters:
_rRectThe box to enclose.
LSE_INLINE LSVOID LSE_FCALL lsm::CRect2::EnclosePoint ( const CVector2 _vPoint)

Resize to enclose the given point.

Parameters:
_vPointThe 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.

Returns:
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.

Returns:
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.

Returns:
Returns the size of the box along the Y world axis.

Member Data Documentation

The X extents.

The Y extents.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator