GClasses
GClasses::GFloatRect Class Reference

Detailed Description

Represents a rectangular region with floats.

#include <GRect.h>

Public Member Functions

 GFloatRect ()
 
 GFloatRect (float _x, float _y, float _w, float _h)
 
bool doesInclude (float _x, float _y)
 Returns true iff this rect includes the specified point. More...
 
void set (float _x, float _y, float _w, float _h)
 Sets all 4 values in this rect. More...
 

Public Attributes

float h
 
float w
 
float x
 
float y
 

Constructor & Destructor Documentation

GClasses::GFloatRect::GFloatRect ( )
inline
GClasses::GFloatRect::GFloatRect ( float  _x,
float  _y,
float  _w,
float  _h 
)
inline

Member Function Documentation

bool GClasses::GFloatRect::doesInclude ( float  _x,
float  _y 
)
inline

Returns true iff this rect includes the specified point.

void GClasses::GFloatRect::set ( float  _x,
float  _y,
float  _w,
float  _h 
)
inline

Sets all 4 values in this rect.

Member Data Documentation

float GClasses::GFloatRect::h
float GClasses::GFloatRect::w
float GClasses::GFloatRect::x
float GClasses::GFloatRect::y