class Vector2D
|
2d vector array operations. More... |
|
|
Public Members
- Vector2D () : X(MathematicalZero), Y(MathematicalZero)
- Vector2D (const MathematicalScalar _X, const MathematicalScalar _Y) : X(_X), Y(_Y)
- Vector2D (const uint32 _X, const uint32 _Y) : X((MathematicalScalar)_X), Y((MathematicalScalar)_Y)
- Vector2D (const int32 _X, const int32 _Y) : X((MathematicalScalar)_X), Y((MathematicalScalar)_Y)
- Vector2D (const uint64 _X, const uint64 _Y) : X((MathematicalScalar)_X), Y((MathematicalScalar)_Y)
- Vector2D (const int64 _X, const int64 _Y) : X((MathematicalScalar)_X), Y((MathematicalScalar)_Y)
- Vector2D ( const Vector2D & v) : X(v.X), Y(v.Y)
- void operator= (const Vector2D & v)
- bool operator== (const Vector2D & v) const
- bool operator!= (const Vector2D & v) const
- void operator+= (const Vector2D & v)
- void operator-= (const Vector2D & v)
- void operator*= (const MathematicalScalar v)
- void operator/= (const MathematicalScalar v)
- Vector2D operator- (void) const
- Vector2D operator- (const Vector2D & v) const
- Vector2D operator+ (const Vector2D & v) const
- Vector2D operator* (const MathematicalScalar v) const
- Vector2D operator/ (const MathematicalScalar v) const
- MathematicalScalar Length (void) const
- MathematicalScalar SquareLength (void) const
- MathematicalScalar DotProduct (const Vector2D & v) const
- MathematicalScalar CrossProduct (const Vector2D & v) const
- MathematicalScalar DistanceTo (const Vector2D & v) const
- MathematicalScalar SquareDistanceTo (const Vector2D & v) const
- Vector2D Normalise (void) const
- Vector2D Reflect (const Vector2D & v) const
- bool CheckNearlyZero () const
- MathematicalScalar X
- MathematicalScalar Y
Detailed Description
This class contains all the required maths operations to construct
and perform operations on a two dimensional vector. It includes
operations such as the dot and cross product. Normalisation, scaling
and various other operations.
Default constructor initialises X and Y to zero.
This constructor takes two MathematicalScalar's and initialises X and Y
This constructor takes two uint32's and initialises X and Y
This constructor takes two int32's and initialises X and Y
This constructor takes two uint64's and initialises X and Y
This constructor takes two int64's and initialises X and Y
Vector2D ( const Vector2D & v) : X(v.X), Y(v.Y)
|
This constructor copies the values from the parameter Vector2D
The following operators allow the standard mathematical operations
on Vector2D's
X and Y are not hidden to allow rapid access.
X and Y are not hidden to allow rapid access.
- Author: Daniel Silverstone
- Generated: dyfet@home.sys on Tue Apr 18 21:24:04 200.