|
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.
|
inline |
Default constructor, initializes everything to 0.
Definition at line 28 of file cVector3.h.

|
inline |
Definition at line 32 of file cVector3.h.
|
inline |
Constructor, initializes all 3 axes to the same value.
Definition at line 37 of file cVector3.h.
|
inline |
Definition at line 41 of file cVector3.h.
|
inline |
Definition at line 45 of file cVector3.h.
Returns the cross product of this vector with the input vector.
Definition at line 120 of file cVector3.h.

|
inline |
Returns the dot product of this vector with the input vector.
Definition at line 114 of file cVector3.h.
|
inline |
Definition at line 147 of file cVector3.h.
|
inline |
Returns the length (magnitude) of the vector.
Definition at line 99 of file cVector3.h.

|
inline |
Forces the current vector to have a length of 1 while preserving the ratio of components.
Definition at line 105 of file cVector3.h.

|
inline |
Definition at line 90 of file cVector3.h.
|
inline |
Definition at line 92 of file cVector3.h.
|
inline |
Definition at line 83 of file cVector3.h.
Definition at line 61 of file cVector3.h.
|
inline |
Definition at line 63 of file cVector3.h.
Definition at line 62 of file cVector3.h.
|
inline |
Definition at line 64 of file cVector3.h.
Definition at line 51 of file cVector3.h.
|
inline |
Definition at line 53 of file cVector3.h.
Definition at line 52 of file cVector3.h.
|
inline |
Definition at line 54 of file cVector3.h.
|
inline |
Definition at line 49 of file cVector3.h.
Definition at line 56 of file cVector3.h.
|
inline |
Definition at line 58 of file cVector3.h.
Definition at line 57 of file cVector3.h.
|
inline |
Definition at line 59 of file cVector3.h.
Definition at line 66 of file cVector3.h.
|
inline |
Definition at line 68 of file cVector3.h.
Definition at line 67 of file cVector3.h.
|
inline |
Definition at line 69 of file cVector3.h.
|
inline |
Definition at line 73 of file cVector3.h.
|
inline |
Definition at line 71 of file cVector3.h.
Definition at line 50 of file cVector3.h.
|
inline |
Definition at line 76 of file cVector3.h.
|
inline |
Definition at line 74 of file cVector3.h.
|
inline |
Definition at line 72 of file cVector3.h.
|
inline |
Definition at line 96 of file cVector3.h.
|
inline |
Definition at line 94 of file cVector3.h.
|
inline |
Sets this vector's components to match the input vector's.
Definition at line 140 of file cVector3.h.
|
inline |
Sets all components of this vector to the same number.
Definition at line 134 of file cVector3.h.
|
inline |
Sets the components of this vector.
Definition at line 126 of file cVector3.h.
| float cAudio::cVector3::x |
Definition at line 25 of file cVector3.h.
| float cAudio::cVector3::y |
Definition at line 25 of file cVector3.h.
| float cAudio::cVector3::z |
Definition at line 25 of file cVector3.h.