|
Audaspace
1.1
A high level audio library.
|
This class represents a 3 dimensional vector. More...
#include <Math3D.h>
Public Member Functions | |
| Vector3 (float x=0, float y=0, float z=0) | |
| Creates a new 3 dimensional vector. More... | |
| const float & | x () const |
| Retrieves the x component of the vector. More... | |
| const float & | y () const |
| Retrieves the y component of the vector. More... | |
| const float & | z () const |
| Retrieves the z component of the vector. More... | |
| void | get (float *destination) const |
| Retrieves the components of the vector. More... | |
| float * | get () |
| Retrieves the components of the vector. More... | |
| const float * | get () const |
| Retrieves the components of the vector. More... | |
| float | length () const |
| Retrieves the length of the vector. More... | |
| Vector3 | cross (const Vector3 &op) const |
| Retrieves the cross product. More... | |
| float | operator* (const Vector3 &op) const |
| Retrieves the dot product. More... | |
| Vector3 | operator* (const float &op) const |
| Retrieves the product with a scalar. More... | |
| Vector3 | operator+ (const Vector3 &op) const |
| Adds two vectors. More... | |
| Vector3 | operator- (const Vector3 &op) const |
| Subtracts two vectors. More... | |
| Vector3 | operator- () const |
| Negates the vector. More... | |
| Vector3 & | operator-= (const Vector3 &op) |
| Subtracts the second vector. More... | |
This class represents a 3 dimensional vector.
|
inline |
Creates a new 3 dimensional vector.
| x | The x component. |
| y | The y component. |
| z | The z component. |
Retrieves the cross product.
| op | The second operand. |
|
inline |
Retrieves the components of the vector.
| destination | Where the 3 float values should be saved to. |
|
inline |
Retrieves the components of the vector.
|
inline |
Retrieves the components of the vector.
|
inline |
Retrieves the length of the vector.
|
inline |
Retrieves the dot product.
| op | The second operand. |
|
inline |
Retrieves the product with a scalar.
| op | The second operand. |
Adds two vectors.
| op | The second operand. |
Subtracts two vectors.
| op | The second operand. |
|
inline |
Negates the vector.
Subtracts the second vector.
| op | The second operand. |
|
inline |
Retrieves the x component of the vector.
|
inline |
Retrieves the y component of the vector.
|
inline |
Retrieves the z component of the vector.
1.8.11