Box Class Reference
[boxproblem]

Square box class. More...

List of all members.

Public Member Functions

Vec2 v0 () const
Vec2 v1 () const
Vec2 v2 () const
Vec2 v3 () const
 Box (const Box &b)
void bbox (Vec2 *bl, Vec2 *ur) const
int vecInBox (const Vec2 &v) const
int overlap (const Box &b) const

Public Attributes

Vec2 c
float ang

Friends

ostream & operator<< (ostream &out, const Box &b)


Detailed Description

Square box class.

Unit-boxes with center at x,y and orientation angle ang. Function v0 to v3 give the corner coordinates. bbox is the bounding box, vecInBox returns 1 if vector is inside the box and overlap checks this and another box for overlap.


The documentation for this class was generated from the following file:

Generated on Mon Feb 8 17:22:36 2010 for libbiarc by  doxygen 1.5.6