#include <Vector4.h>
Public Member Functions | |
Vector4 (float x_=0.0f, float y_=0.0f, float z_=0.0f, float w_=0.0f) | |
void | set (float x_, float y_, float z_, float w_) |
float | length (void) |
void | normalize (void) |
Vector4 | operator+ (const Vector4 &other) |
Vector4 | operator- (const Vector4 &other) |
Vector4 | operator * (const Vector4 &other) |
Vector4 | operator/ (const Vector4 &other) |
Vector4 | operator * (const float scalar) |
Vector4 & | operator= (const Vector4 &other) |
Vector4 & | operator+= (const Vector4 &other) |
Vector4 & | operator-= (const Vector4 &other) |
Vector4 | operator+ (void) const |
Vector4 | operator- (void) const |
Static Public Member Functions | |
static float | distance (const Vector4 &v1, const Vector4 &v2) |
static float | dotProduct (const Vector4 &v1, const Vector4 &v2) |
static Vector4 | crossProduct (const Vector4 &v1, const Vector4 &v2) |
Public Attributes | |
float | x |
x component | |
float | y |
y component | |
float | z |
z component | |
float | w |
w component | |
Friends | |
Vector4 | operator * (const float scalar, const Vector4 &other) |
So far it's mainly just used for lighting purposes in the object, but it could also perhaps be used to store RGBA color information...