cAudio
2.3.0
3d Audio Engine
|
Class for manipulating vectors in 3D space. More...
#include <cVector3.h>
Public Member Functions | |
cVector3 (void) | |
Default constructor, initializes everything to 0. | |
cVector3 (float nx, float ny, float nz) | |
cVector3 (float n) | |
Constructor, initializes all 3 axes to the same value. | |
cVector3 (const cVector3 &other) | |
cVector3 (float *vector) | |
cVector3 | operator- () const |
cVector3 & | operator= (const cVector3 &other) |
cVector3 | operator+ (const cVector3 &other) const |
cVector3 & | operator+= (const cVector3 &other) |
cVector3 | operator+ (const float val) const |
cVector3 & | operator+= (const float val) |
cVector3 | operator- (const cVector3 &other) const |
cVector3 & | operator-= (const cVector3 &other) |
cVector3 | operator- (const float val) const |
cVector3 & | operator-= (const float val) |
cVector3 | operator* (const cVector3 &other) const |
cVector3 & | operator*= (const cVector3 &other) |
cVector3 | operator* (const float v) const |
cVector3 & | operator*= (const float v) |
cVector3 | operator/ (const cVector3 &other) const |
cVector3 & | operator/= (const cVector3 &other) |
cVector3 | operator/ (const float v) const |
cVector3 & | operator/= (const float v) |
bool | operator<= (const cVector3 &other) const |
bool | operator>= (const cVector3 &other) const |
bool | operator< (const cVector3 &other) const |
bool | operator> (const cVector3 &other) const |
bool | operator== (const cVector3 &other) const |
bool | operator!= (const cVector3 &other) const |
operator const float * () const | |
operator float * () | |
float | operator[] (int i) const |
float & | operator[] (int i) |
float | length () const |
Returns the length (magnitude) of the vector. | |
void | normalize () |
Forces the current vector to have a length of 1 while preserving the ratio of components. | |
float | dot (const cVector3 &other) const |
Returns the dot product of this vector with the input vector. | |
cVector3 | cross (const cVector3 &other) const |
Returns the cross product of this vector with the input vector. | |
void | set (float nx, float ny, float nz) |
Sets the components of this vector. | |
void | set (float n) |
Sets all components of this vector to the same number. | |
void | set (const cVector3 &other) |
Sets this vector's components to match the input vector's. | |
void | getAsArray (float *output) |
Public Attributes | |
float | x |
float | y |
float | z |
Class for manipulating vectors in 3D space.
Definition at line 22 of file cVector3.h.