Torque2D Reference
Loading...
Searching...
No Matches
RectI Class Reference

#include <mRect.h>

Public Member Functions

 RectI ()
 RectI (const Point2I &in_rMin, const Point2I &in_rExtent)
 RectI (const S32 in_left, const S32 in_top, const S32 in_width, const S32 in_height)
void set (const Point2I &in_rMin, const Point2I &in_rExtent)
void set (const S32 in_left, const S32 in_top, const S32 in_width, const S32 in_height)
bool intersect (const RectI &clipRect)
bool pointInRect (const Point2I &pt) const
S32 distanceToRect (const Point2I &pt) const
bool contains (const RectI &R) const
bool overlaps (RectI R) const
void inset (S32 x, S32 y)
void unionRects (const RectI &)
Point2I centre (void) const
S32 len_x () const
S32 len_y () const
bool operator== (const RectI &) const
bool operator!= (const RectI &) const
bool isValidRect () const

Public Attributes

Point2I point
Point2I extent

Constructor & Destructor Documentation

◆ RectI() [1/3]

RectI ( )
inline

◆ RectI() [2/3]

RectI ( const Point2I & in_rMin,
const Point2I & in_rExtent )
inline

◆ RectI() [3/3]

RectI ( const S32 in_left,
const S32 in_top,
const S32 in_width,
const S32 in_height )
inline

Member Function Documentation

◆ centre()

Point2I centre ( void ) const
inline

◆ contains()

bool contains ( const RectI & R) const
inline

◆ distanceToRect()

S32 distanceToRect ( const Point2I & pt) const
inline

◆ inset()

void inset ( S32 x,
S32 y )
inline

◆ intersect()

bool intersect ( const RectI & clipRect)
inline

◆ isValidRect()

bool isValidRect ( ) const
inline

◆ len_x()

S32 len_x ( ) const
inline

◆ len_y()

S32 len_y ( ) const
inline

◆ operator!=()

bool operator!= ( const RectI & in_rCompare) const
inline

◆ operator==()

bool operator== ( const RectI & in_rCompare) const
inline

◆ overlaps()

bool overlaps ( RectI R) const
inline

◆ pointInRect()

bool pointInRect ( const Point2I & pt) const
inline

◆ set() [1/2]

void set ( const Point2I & in_rMin,
const Point2I & in_rExtent )
inline

◆ set() [2/2]

void set ( const S32 in_left,
const S32 in_top,
const S32 in_width,
const S32 in_height )
inline

◆ unionRects()

void unionRects ( const RectI & u)
inline

Member Data Documentation

◆ extent

Point2I extent

◆ point

Point2I point

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