class Vector2D


Public Methods

[more] Vector2D()
Constructors / Destructors
[more] Vector2D(double x, double y)
[more]virtual ~Vector2D()
[more]Vector2D& Zero(void)
[more]inline Vector2D& operator=(const Vector2D& other)
Operator overloads
[more]inline Vector2D operator+(const Vector2D& other) const
[more]inline Vector2D& operator+=(const Vector2D& other)
[more]inline Vector2D operator-(void) const
[more]inline Vector2D operator-(const Vector2D& other) const
[more]inline Vector2D& operator -=(const Vector2D& other)
[more]inline Vector2D operator/(const double other) const
[more]inline Vector2D& operator/=(const double other)
[more]inline Vector2D operator*(const double other) const
[more]inline Vector2D& operator*=(const double other)
[more]inline double operator *(const Vector2D& other) const
[more]inline double x(void) const
Cross product: only relevant Z coordinate;
[more]inline double y(void) const
[more]inline void set_x(const double x)
[more]inline void set_y(const double y)
[more]void Rotate(const double &angle, bool inrad)
Other public methods
[more]void Set(double x, double y)
rotate counterclokwise
[more]double Angle(const Vector2D &v) const
Angle between v and this vector(in radians)(>0 going counterclockwise from *this to v)
[more]Vector2D Normalize(void) const
[more]void Normalize(void)
[more]bool IsNormalized(void) const
[more]inline double Length(void) const
[more]void Randomize(double R)
[more]void Out(char* c) const
[more]int ParseXML(xmlDocPtr doc, xmlNodePtr cur)
[more]inline Vector2D& operator =(const Vector2D & other)
[more]inline Vector2D operator +(const Vector2D& other) const
[more]inline Vector2D& operator +=(const Vector2D & other)
[more]inline Vector2D& operator -=(const Vector2D & other)
[more]inline Vector2D operator -() const
[more]inline Vector2D operator -(const Vector2D& other) const
[more]inline Vector2D operator /(const double other) const
[more]inline Vector2D& operator /=(const double other)
[more]inline Vector2D operator *(const double other) const
[more]inline Vector2D& operator *=(const double other)
[more]inline double operator *(const Vector2D & other) const
[more]inline double Length() const
[more]inline double operator^(const Vector2D &other) const
Dot product

Private Fields

[more]double x_m
[more]double y_m


Documentation

o Vector2D()
Constructors / Destructors

o Vector2D(double x, double y)

ovirtual ~Vector2D()

oVector2D& Zero(void)

oinline Vector2D& operator=(const Vector2D& other)
Operator overloads

oinline Vector2D operator+(const Vector2D& other) const

oinline Vector2D& operator+=(const Vector2D& other)

oinline Vector2D operator-(void) const

oinline Vector2D operator-(const Vector2D& other) const

oinline Vector2D& operator -=(const Vector2D& other)

oinline Vector2D operator/(const double other) const

oinline Vector2D& operator/=(const double other)

oinline Vector2D operator*(const double other) const

oinline Vector2D& operator*=(const double other)

oinline double operator *(const Vector2D& other) const

oinline double x(void) const
Cross product: only relevant Z coordinate;

oinline double y(void) const

oinline void set_x(const double x)

oinline void set_y(const double y)

ovoid Rotate(const double &angle, bool inrad)
Other public methods

ovoid Set(double x, double y)
rotate counterclokwise

odouble Angle(const Vector2D &v) const
Angle between v and this vector(in radians)(>0 going counterclockwise from *this to v)

oVector2D Normalize(void) const

ovoid Normalize(void)

obool IsNormalized(void) const

oinline double Length(void) const

ovoid Randomize(double R)

ovoid Out(char* c) const

oint ParseXML(xmlDocPtr doc, xmlNodePtr cur)

odouble x_m

odouble y_m

oinline Vector2D& operator =(const Vector2D & other)

oinline Vector2D operator +(const Vector2D& other) const

oinline Vector2D& operator +=(const Vector2D & other)

oinline Vector2D& operator -=(const Vector2D & other)

oinline Vector2D operator -() const

oinline Vector2D operator -(const Vector2D& other) const

oinline Vector2D operator /(const double other) const

oinline Vector2D& operator /=(const double other)

oinline Vector2D operator *(const double other) const

oinline Vector2D& operator *=(const double other)

oinline double operator *(const Vector2D & other) const

oinline double Length() const

oinline 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++.