GClasses
|
Represents a rectangular region with doubles. More...
#include <GRect.h>
Public Member Functions | |
GDoubleRect () | |
GDoubleRect (double _x, double _y, double _w, double _h) | |
void | set (double _x, double _y, double _w, double _h) |
Sets all 4 values of this rect. | |
bool | doesInclude (double _x, double _y) |
Returns true if the specified point is within this rect. | |
void | include (double _x, double _y) |
Increases the rect size to include the specified point. | |
void | makeAspect (double _w, double _h) |
Minimally increases the size of this rect (equally on both sides) in order to obtain the specified aspect ratio. | |
Public Attributes | |
double | x |
double | y |
double | w |
double | h |
Represents a rectangular region with doubles.
GClasses::GDoubleRect::GDoubleRect | ( | ) | [inline] |
GClasses::GDoubleRect::GDoubleRect | ( | double | _x, |
double | _y, | ||
double | _w, | ||
double | _h | ||
) | [inline] |
bool GClasses::GDoubleRect::doesInclude | ( | double | _x, |
double | _y | ||
) | [inline] |
Returns true if the specified point is within this rect.
void GClasses::GDoubleRect::include | ( | double | _x, |
double | _y | ||
) | [inline] |
Increases the rect size to include the specified point.
void GClasses::GDoubleRect::makeAspect | ( | double | _w, |
double | _h | ||
) | [inline] |
Minimally increases the size of this rect (equally on both sides) in order to obtain the specified aspect ratio.
void GClasses::GDoubleRect::set | ( | double | _x, |
double | _y, | ||
double | _w, | ||
double | _h | ||
) | [inline] |
Sets all 4 values of this rect.
double GClasses::GDoubleRect::h |
double GClasses::GDoubleRect::w |
double GClasses::GDoubleRect::x |
double GClasses::GDoubleRect::y |