ScummVM API documentation
Crab::Vector2D< T > Class Template Reference

Public Member Functions

 Vector2D (T X=0, T Y=0)
 
void Set (T X=0, T Y=0)
 
bool load (rapidxml::xml_node< char > *node, const bool &echo=true)
 
void saveState (rapidxml::xml_document<> &doc, rapidxml::xml_node< char > *root, const char *name)
 
double magnitude ()
 
double magSqr ()
 
void normalize ()
 
float dotProduct (const Vector2D< T > &v) const
 
void operator+= (const Vector2D &v)
 
void operator-= (const Vector2D &v)
 
bool operator== (const Vector2D &v) const
 
bool operator!= (const Vector2D &v) const
 

Public Attributes

x
 
y
 

Friends

Vector2D operator- (const Vector2D &v1, const Vector2D &v2)
 

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