ScummVM API documentation
Crab::Polygon2D Class Reference

Public Member Functions

 Polygon2D (rapidxml::xml_node< char > *node, Rect &bounds)
 
void load (rapidxml::xml_node< char > *node, Rect &bounds)
 
void setEdge ()
 
Vector2f center () const
 
void offset (const float &x, const float &y)
 
void offset (const Vector2f &v)
 
PolygonCollisionResult collide (const Polygon2D &polyB) const
 
PolygonCollisionResult collide (const Rect &rect) const
 
bool contains (const float &x, const float &y)
 
void project (const Vector2f &axis, float &min, float &max) const
 
void draw (const int &xOffset=0, const int &yOffset=0, const uint8 &r=0, const uint8 &g=0, const uint8 &b=0.0f, const uint8 &a=255)
 

Public Attributes

Common::Array< Vector2f_point
 
Common::Array< Vector2f_edge
 

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