vector3 Class Reference

#include <vector3.h>

List of all members.


Detailed Description

Generic vector3 class. Uses 16 Byte of mem instead of 12 (!)

Public Member Functions

 vector3 ()
 vector3 (const float _x, const float _y, const float _z)
 vector3 (const vector3 &vec)
void set (const float _x, const float _y, const float _z)
void set (const vector3 &vec)
float len () const
float lensquared () const
void norm ()
void operator+= (const vector3 &v0)
void operator-= (const vector3 &v0)
void operator *= (float s)
bool operator> (const vector3 &rhs)
bool operator< (const vector3 &rhs)
bool isequal (const vector3 &v, float tol=0.0f) const
int compare (const vector3 &v, float tol=0.0f) const
void rotate (const vector3 &axis, float angle)
void lerp (const vector3 &v0, float lerpVal)
void lerp (const vector3 &v0, const vector3 &v1, float lerpVal)
vector3 findortho () const
void saturate ()
float dot (const vector3 &v0) const

Static Public Member Functions

static float distance (const vector3 &v0, const vector3 &v1)
static float angle (const vector3 &v0, const vector3 &v1)

Public Attributes

float x
float y
float z

Constructor & Destructor Documentation

vector3::vector3 (  )  [inline]

vector3::vector3 ( const float  _x,
const float  _y,
const float  _z 
) [inline]

vector3::vector3 ( const vector3 vec  )  [inline]


Member Function Documentation

void vector3::set ( const float  _x,
const float  _y,
const float  _z 
) [inline]

void vector3::set ( const vector3 vec  )  [inline]

float vector3::len (  )  const [inline]

float vector3::lensquared (  )  const [inline]

void vector3::norm (  )  [inline]

void vector3::operator+= ( const vector3 v0  )  [inline]

void vector3::operator-= ( const vector3 v0  )  [inline]

void vector3::operator *= ( float  s  )  [inline]

bool vector3::operator> ( const vector3 rhs  )  [inline]

bool vector3::operator< ( const vector3 rhs  )  [inline]

bool vector3::isequal ( const vector3 v,
float  tol = 0.0f 
) const [inline]

int vector3::compare ( const vector3 v,
float  tol = 0.0f 
) const [inline]

void vector3::rotate ( const vector3 axis,
float  angle 
) [inline]

void vector3::lerp ( const vector3 v0,
float  lerpVal 
) [inline]

void vector3::lerp ( const vector3 v0,
const vector3 v1,
float  lerpVal 
) [inline]

vector3 vector3::findortho (  )  const [inline]

Find a vector that is orthogonal to self. Self should not be (0,0,0). Return value is not normalized.

void vector3::saturate (  )  [inline]

float vector3::dot ( const vector3 v0  )  const [inline]

Dot product for vector3

float vector3::distance ( const vector3 v0,
const vector3 v1 
) [inline, static]

float vector3::angle ( const vector3 v0,
const vector3 v1 
) [inline, static]


Member Data Documentation

float vector3::x

float vector3::y

float vector3::z


The documentation for this class was generated from the following file:
Generated on Sat Oct 20 14:47:37 2007 for Dark Oberon by  doxygen 1.5.3