A lightweight 1x3 vector class. Vector allows game objects to be represented in three dimensional world space. It provides basic arithmetic and vector functions for manipulating position data.
Vector.h
A lightweight 1x3 vector class. | |
The default Vector constructor. | |
The Vector constructor. | |
Compares the vector to another vector. | |
Compares the vector to another vector. | |
Subtracts another vector from the vector. | |
Adds another vector to the vector. | |
Multiples the vector by a scalar. | |
Divides the vector by a scalar. | |
Calculates and returns the length of the vector. | |
Normalizes the vector in place. | |
Normalizes the vector into the given Vector. |
|
|
|
|
|
|
|
| float Length() const |
| void Normalize() |