Public Methods
-
Vector2D()
- Constructors / Destructors
-
Vector2D(double x, double y)
-
virtual ~Vector2D()
-
Vector2D& Zero(void)
-
inline Vector2D& operator=(const Vector2D& other)
- Operator overloads
-
inline Vector2D operator+(const Vector2D& other) const
-
inline Vector2D& operator+=(const Vector2D& other)
-
inline Vector2D operator-(void) const
-
inline Vector2D operator-(const Vector2D& other) const
-
inline Vector2D& operator -=(const Vector2D& other)
-
inline Vector2D operator/(const double other) const
-
inline Vector2D& operator/=(const double other)
-
inline Vector2D operator*(const double other) const
-
inline Vector2D& operator*=(const double other)
-
inline double operator *(const Vector2D& other) const
-
inline double x(void) const
- Cross product: only relevant Z coordinate;
-
inline double y(void) const
-
inline void set_x(const double x)
-
inline void set_y(const double y)
-
void Rotate(const double &angle, bool inrad)
- Other public methods
-
void Set(double x, double y)
- rotate counterclokwise
-
double Angle(const Vector2D &v) const
- Angle between v and this vector(in radians)(>0 going counterclockwise from *this to v)
-
Vector2D Normalize(void) const
-
void Normalize(void)
-
bool IsNormalized(void) const
-
inline double Length(void) const
-
void Randomize(double R)
-
void Out(char* c) const
-
int ParseXML(xmlDocPtr doc, xmlNodePtr cur)
-
inline Vector2D& operator =(const Vector2D & other)
-
inline Vector2D operator +(const Vector2D& other) const
-
inline Vector2D& operator +=(const Vector2D & other)
-
inline Vector2D& operator -=(const Vector2D & other)
-
inline Vector2D operator -() const
-
inline Vector2D operator -(const Vector2D& other) const
-
inline Vector2D operator /(const double other) const
-
inline Vector2D& operator /=(const double other)
-
inline Vector2D operator *(const double other) const
-
inline Vector2D& operator *=(const double other)
-
inline double operator *(const Vector2D & other) const
-
inline double Length() const
-
inline double operator^(const Vector2D &other) const
- Dot product
Private Fields
-
double x_m
-
double y_m
Documentation
- Vector2D()
- Constructors / Destructors
- Vector2D(double x, double y)
- virtual ~Vector2D()
- Vector2D& Zero(void)
- inline Vector2D& operator=(const Vector2D& other)
- Operator overloads
- inline Vector2D operator+(const Vector2D& other) const
- inline Vector2D& operator+=(const Vector2D& other)
- inline Vector2D operator-(void) const
- inline Vector2D operator-(const Vector2D& other) const
- inline Vector2D& operator -=(const Vector2D& other)
- inline Vector2D operator/(const double other) const
- inline Vector2D& operator/=(const double other)
- inline Vector2D operator*(const double other) const
- inline Vector2D& operator*=(const double other)
- inline double operator *(const Vector2D& other) const
- inline double x(void) const
- Cross product: only relevant Z coordinate;
- inline double y(void) const
- inline void set_x(const double x)
- inline void set_y(const double y)
- void Rotate(const double &angle, bool inrad)
- Other public methods
- void Set(double x, double y)
- rotate counterclokwise
- double Angle(const Vector2D &v) const
- Angle between v and this vector(in radians)(>0 going counterclockwise from *this to v)
- Vector2D Normalize(void) const
- void Normalize(void)
- bool IsNormalized(void) const
- inline double Length(void) const
- void Randomize(double R)
- void Out(char* c) const
- int ParseXML(xmlDocPtr doc, xmlNodePtr cur)
- double x_m
- double y_m
- inline Vector2D& operator =(const Vector2D & other)
- inline Vector2D operator +(const Vector2D& other) const
- inline Vector2D& operator +=(const Vector2D & other)
- inline Vector2D& operator -=(const Vector2D & other)
- inline Vector2D operator -() const
- inline Vector2D operator -(const Vector2D& other) const
- inline Vector2D operator /(const double other) const
- inline Vector2D& operator /=(const double other)
- inline Vector2D operator *(const double other) const
- inline Vector2D& operator *=(const double other)
- inline double operator *(const Vector2D & other) const
- inline double Length() const
- inline double operator^(const Vector2D &other) const
- Dot product
- This class has no child classes.
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.