Photon 0.0.2 Simple Open Source 2D Game API  | 
RectDefines geometric entity known as a rectangle. A four-sided plane figure with four right angles. http://dictionary.com Operators
 Summary 
 contains
 Check if another rectangle is entirely contained within the Rect. Parameters
 ReturnsTrue if rect is entirely contained within, false if all or part is outside. calcIntersection
 calculates & returns the intersection of two rectangles. Parameters
 ReturnsRectangle defining area of intersection between the two rectangles. If intersects is false, the rectangle will have a width & height of zero.  | 
Initializes rectangle at (0,0) with size of 0.
Rect() 
Default destructor, exists to make Rect inheritance safe.
virtual ~Rect() 
move rectangle to new location.
void moveTo( const Point2 & topleft ) 
move rectangle relative to current position.
void moveRel( scalar xMove, scalar yMove ) 
set new size for rectangle.
void resize( scalar width, scalar height ) 
set new size for rectangle, relative to current size.
void resizeRel( scalar widthDelta, scalar heightDelta ) 
Check for intersection between two Rects.
bool intersects( const Rect & rect ) const 
Check if a point is contained within the Rect.
bool contains( const Point2 & point ) const 
calculates & returns the intersection of two rectangles.
Rect calcIntersection( const Rect & rect ) const 
Get x coord of rectangle.
scalar getX() const 
Get y coord of rectangle.
scalar getY() const 
Get y coord of top side of rectangle.
scalar getTop() const 
Get x coord of left side of rectangle.
scalar getLeft() const 
Get y coord of bottom side of rectangle.
scalar getBottom() const 
Get x coord of right side of rectangle.
scalar getRight() const 
Get width of rectangle.
scalar getWidth() const 
Get height of rectangle.
scalar getHeight() const 
Get top left corner of rectangle.
Point2 getTopLeft() const 
Get top right corner of rectangle.
Point2 getTopRight() const 
Get bottom left corner of rectangle.
Point2 getBottomLeft() const 
Get bottom right corner of rectangle.
Point2 getBottomRight() const