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

#include <mRect.h>

Public Member Functions

 RectF ()
 RectF (const Point2F &in_rMin, const Point2F &in_rExtent)
 RectF (const F32 in_left, const F32 in_top, const F32 in_width, const F32 in_height)
void inset (F32 x, F32 y)
bool intersect (const RectF &clipRect)
bool overlaps (const RectF &) const
Point2F centre (void) const
F32 len_x () const
F32 len_y () const
bool isValidRect () const

Public Attributes

Point2F point
Point2F extent

Constructor & Destructor Documentation

◆ RectF() [1/3]

RectF ( )
inline

◆ RectF() [2/3]

RectF ( const Point2F & in_rMin,
const Point2F & in_rExtent )
inline

◆ RectF() [3/3]

RectF ( const F32 in_left,
const F32 in_top,
const F32 in_width,
const F32 in_height )
inline

Member Function Documentation

◆ centre()

Point2F centre ( void ) const
inline

◆ inset()

void inset ( F32 x,
F32 y )
inline

◆ intersect()

bool intersect ( const RectF & clipRect)
inline

◆ isValidRect()

bool isValidRect ( ) const
inline

◆ len_x()

F32 len_x ( ) const
inline

◆ len_y()

F32 len_y ( ) const
inline

◆ overlaps()

bool overlaps ( const RectF & clipRect) const
inline

Member Data Documentation

◆ extent

Point2F extent

◆ point

Point2F point

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