torque Torque Game Engine Documentation
TGE Version 1.5.2

RectI Class Reference

#include <mRect.h>

Inheritance diagram for RectI:

Inheritance graph
[legend]

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
bool contains (const RectI &R) const
bool overlaps (RectI R) const
void inset (S32 x, S32 y)
void unionRects (const RectI &)
S32 len_x () const
S32 len_y () const
bool operator== (const RectI &) const
bool operator!= (const RectI &) const
bool isValidRect () const

Data Fields

Point2I point
Point2I extent

Constructor & Destructor Documentation

RectI::RectI (  )  [inline]

RectI::RectI ( const Point2I in_rMin,
const Point2I in_rExtent 
) [inline]

RectI::RectI ( const S32  in_left,
const S32  in_top,
const S32  in_width,
const S32  in_height 
) [inline]


Member Function Documentation

void RectI::set ( const Point2I in_rMin,
const Point2I in_rExtent 
) [inline]

void RectI::set ( const S32  in_left,
const S32  in_top,
const S32  in_width,
const S32  in_height 
) [inline]

bool RectI::intersect ( const RectI clipRect  )  [inline]

bool RectI::pointInRect ( const Point2I pt  )  const [inline]

bool RectI::contains ( const RectI R  )  const [inline]

bool RectI::overlaps ( RectI  R  )  const [inline]

void RectI::inset ( S32  x,
S32  y 
) [inline]

void RectI::unionRects ( const RectI  )  [inline]

S32 RectI::len_x (  )  const [inline]

S32 RectI::len_y (  )  const [inline]

bool RectI::operator== ( const RectI  )  const [inline]

bool RectI::operator!= ( const RectI  )  const [inline]

bool RectI::isValidRect (  )  const [inline]


Field Documentation




All Rights Reserved GarageGames.com, Inc. 1999-2005
Auto-magically Generated with Doxygen