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) |
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.