class Vector2D

2d vector array operations. More...

Definition#include <../common/math.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Members


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.

Vector2D () : X(MathematicalZero), Y(MathematicalZero)

Default constructor initialises X and Y to zero.

Vector2D (const MathematicalScalar _X, const MathematicalScalar _Y) : X(_X), Y(_Y)

This constructor takes two MathematicalScalar's and initialises X and Y

Vector2D (const uint32 _X, const uint32 _Y) : X((MathematicalScalar)_X), Y((MathematicalScalar)_Y)

This constructor takes two uint32's and initialises X and Y

Vector2D (const int32 _X, const int32 _Y) : X((MathematicalScalar)_X), Y((MathematicalScalar)_Y)

This constructor takes two int32's and initialises X and Y

Vector2D (const uint64 _X, const uint64 _Y) : X((MathematicalScalar)_X), Y((MathematicalScalar)_Y)

This constructor takes two uint64's and initialises X and Y

Vector2D (const int64 _X, const int64 _Y) : X((MathematicalScalar)_X), Y((MathematicalScalar)_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

void operator= (const Vector2D & v)

The following operators allow the standard mathematical operations on Vector2D's

MathematicalScalar X

X and Y are not hidden to allow rapid access.

MathematicalScalar Y

X and Y are not hidden to allow rapid access.