cAudio::cVector3 Class Reference

Class for manipulating vectors in 3D space. More...

#include <cVector3.h>

List of all members.

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 operator- () const
cVector3operator= (const cVector3 &other)
cVector3 operator+ (const cVector3 &other) const
cVector3operator+= (const cVector3 &other)
cVector3 operator+ (const float val) const
cVector3operator+= (const float val)
cVector3 operator- (const cVector3 &other) const
cVector3operator-= (const cVector3 &other)
cVector3 operator- (const float val) const
cVector3operator-= (const float val)
cVector3 operator* (const cVector3 &other) const
cVector3operator*= (const cVector3 &other)
cVector3 operator* (const float v) const
cVector3operator*= (const float v)
cVector3 operator/ (const cVector3 &other) const
cVector3operator/= (const cVector3 &other)
cVector3 operator/ (const float v) const
cVector3operator/= (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 * ()
const 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

Detailed Description

Class for manipulating vectors in 3D space.

Definition at line 22 of file cVector3.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Enumerations

Generated on Sat Feb 20 22:55:20 2010 for cAudio by  doxygen 1.6.2