RectF Class Reference#include <mRect.h>
List of all members.
|
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 | set (const Point2F &in_rMin, const Point2F &in_rExtent) |
void | set (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 | pointInRect (const Point2F &pt) const |
bool | overlaps (const RectF &) const |
bool | contains (const Point2F &p) const |
bool | contains (const RectF &R) const |
F32 | len_x () const |
F32 | len_y () const |
bool | isValidRect () const |
bool | intersectTriangle (const Point2F &a, const Point2F &b, const Point2F &c) |
Public Attributes |
Point2F | point |
Point2F | extent |
Constructor & Destructor Documentation
RectF::RectF |
( |
|
) |
[inline] |
RectF::RectF |
( |
const Point2F & |
in_rMin, |
|
|
const Point2F & |
in_rExtent | |
|
) |
| | [inline] |
RectF::RectF |
( |
const F32 |
in_left, |
|
|
const F32 |
in_top, |
|
|
const F32 |
in_width, |
|
|
const F32 |
in_height | |
|
) |
| | [inline] |
Member Function Documentation
void RectF::set |
( |
const F32 |
in_left, |
|
|
const F32 |
in_top, |
|
|
const F32 |
in_width, |
|
|
const F32 |
in_height | |
|
) |
| | [inline] |
bool RectF::intersect |
( |
const RectF & |
clipRect |
) |
[inline] |
bool RectF::pointInRect |
( |
const Point2F & |
pt |
) |
const [inline] |
bool RectF::overlaps |
( |
const RectF & |
|
) |
const [inline] |
bool RectF::contains |
( |
const Point2F & |
p |
) |
const [inline] |
bool RectF::contains |
( |
const RectF & |
R |
) |
const [inline] |
F32 RectF::len_x |
( |
|
) |
const [inline] |
F32 RectF::len_y |
( |
|
) |
const [inline] |
bool RectF::isValidRect |
( |
|
) |
const [inline] |
Member Data Documentation
|