Xface Core Library: XMath::Rectangle2 Class Reference

XFace / XEngine / XMath

XMath::Rectangle2 Class Reference
[XMath]

#include <Rectangle.h>

List of all members.


Detailed Description

Author:
Koray Balci
Version:
1.0
Date:
April 2003
Class that represents a rectangle in 2D, no operations (methods) are involved, only data abstraction for the time being.


Public Member Functions

bool isPointInRect (float x, float y) const
const Vertex2DgetTopLeft () const
 Accessor.
const Vertex2DgetBottomRight () const
 Accessor.
float getX0 () const
 Accessor.
float getY0 () const
 Accessor.
float getX1 () const
 Accessor.
float getY1 () const
 Accessor.
float getWidth () const
 Accessor.
float getHeight () const
 Accessor.
void setX0 (float _x0)
 Accessor.
void setY0 (float _y0)
 Accessor.
void setX1 (float _x1)
 Accessor.
void setY1 (float _y1)
 Accessor.

Member Function Documentation

bool XMath::Rectangle2::isPointInRect float  x,
float  y
const [inline]
 

Checks whether the x/y values lie inside the rectangle.

Note:
top bottom x/y reversed!! it's not a bug but just convention..


The documentation for this class was generated from the following file:
Generated on Mon Aug 28 15:39:26 2006 for Xface Core Library by  doxygen 1.4.6-NO