#include <Vector3.h>
Public Member Functions | |
Vector3 (float x_=0.0f, float y_=0.0f, float z_=0.0f) | |
void | set (float x_, float y_, float z_) |
float | length (void) |
void | normalize (void) |
Vector3 | operator+ (const Vector3 &other) |
Vector3 | operator- (const Vector3 &other) |
Vector3 | operator * (const Vector3 &other) |
Vector3 | operator/ (const Vector3 &other) |
Vector3 | operator * (const float scalar) |
Vector3 & | operator= (const Vector3 &other) |
Vector3 & | operator+= (const Vector3 &other) |
Vector3 & | operator-= (const Vector3 &other) |
Vector3 | operator+ (void) const |
Vector3 | operator- (void) const |
Static Public Member Functions | |
static float | distance (const Vector3 &v1, const Vector3 &v2) |
static float | dotProduct (const Vector3 &v1, const Vector3 &v2) |
static Vector3 | crossProduct (const Vector3 &v1, const Vector3 &v2) |
Public Attributes | |
float | x |
x component | |
float | y |
y component | |
float | z |
z component | |
Friends | |
Vector3 | operator * (const float scalar, const Vector3 &other) |
It's perfectly acceptable to keep the z-plane variable to 1.0f, if you're only interested in using 2D graphics.