Vector4 Class Reference

#include <Vector4.h>

List of all members.

Public Member Functions

 Vector4 ()
 Vector4 (const Vector &v, float a=1.0f)
 Vector4 (const Vector4 &c1, const Vector4 &c2, float scal)
 Vector4 (const Vector4 &v)
 Vector4 (const float Pt[4])
 Vector4 (const float ptA, const float ptB, const float ptC, float ptD=0.0f)
 Vector4 (const int ptA, const int ptB, const int ptC, const int ptD=0)
void zero ()
bool operator== (const Vector4 &Vin1)
bool operator!= (const Vector4 &Vin1)
Vector4operator+= (const Vector4 &qc)
Vector4 operator * (const Vector4 &qc)
Vector4 lerp (Vector4 &c1, Vector4 &c2)
 > component wise linear interpolation
void Normalize ()
void setQuatFromAxisAndAngle (Vector &axis, float angle)
void getRotationMatrix (float *R)
void getOpenGLRotationMatrix (float *R)
void getRelativeVector (Vector &result, Vector &position)
float & operator[] (const int m)
float const & operator[] (const int m) const
 operator float * ()

Static Public Member Functions

static void dDQfromW (Vector4 &dq, Vector &w, Vector4 &q)
static Vector4getNullVector ()

Protected Attributes

float V [4]


Detailed Description

Definition at line 26 of file Vector4.h.


Constructor & Destructor Documentation

Vector4::Vector4 (  )  [inline]

Definition at line 29 of file Vector4.h.

References V.

Referenced by lerp().

Vector4::Vector4 ( const Vector v,
float  a = 1.0f 
) [inline]

Definition at line 34 of file Vector4.h.

References V.

Vector4::Vector4 ( const Vector4 c1,
const Vector4 c2,
float  scal 
) [inline]

Definition at line 42 of file Vector4.h.

References V.

Vector4::Vector4 ( const Vector4 v  )  [inline]

Definition at line 50 of file Vector4.h.

References V.

Vector4::Vector4 ( const float  Pt[4]  )  [inline]

Definition at line 58 of file Vector4.h.

References V.

Vector4::Vector4 ( const float  ptA,
const float  ptB,
const float  ptC,
float  ptD = 0.0f 
) [inline]

Definition at line 66 of file Vector4.h.

References V.

Vector4::Vector4 ( const int  ptA,
const int  ptB,
const int  ptC,
const int  ptD = 0 
) [inline]

Definition at line 74 of file Vector4.h.

References V.


Member Function Documentation

void Vector4::zero (  )  [inline]

Definition at line 82 of file Vector4.h.

References V.

Referenced by getNullVector().

bool Vector4::operator== ( const Vector4 Vin1  )  [inline]

Definition at line 87 of file Vector4.h.

References V.

bool Vector4::operator!= ( const Vector4 Vin1  )  [inline]

Definition at line 92 of file Vector4.h.

Vector4& Vector4::operator+= ( const Vector4 qc  )  [inline]

Definition at line 97 of file Vector4.h.

References V.

Vector4 Vector4::operator * ( const Vector4 qc  )  [inline]

Definition at line 107 of file Vector4.h.

Vector4 Vector4::lerp ( Vector4 c1,
Vector4 c2 
) [inline]

> component wise linear interpolation

Definition at line 122 of file Vector4.h.

References V, and Vector4().

Referenced by Water2Renderer::generate().

void Vector4::Normalize (  ) 

Definition at line 109 of file Vector4.cpp.

References dDOT, and V.

void Vector4::setQuatFromAxisAndAngle ( Vector axis,
float  angle 
)

Definition at line 45 of file Vector4.cpp.

References V.

void Vector4::getRotationMatrix ( float *  R  ) 

Definition at line 70 of file Vector4.cpp.

References _R, and V.

Referenced by getOpenGLRotationMatrix(), and getRelativeVector().

void Vector4::getOpenGLRotationMatrix ( float *  R  ) 

Definition at line 90 of file Vector4.cpp.

References getRotationMatrix().

Referenced by GLWTankModel::draw(), and GLWTankViewer::drawItem().

void Vector4::getRelativeVector ( Vector result,
Vector position 
)

Definition at line 129 of file Vector4.cpp.

References dMULTIPLY1_331, and getRotationMatrix().

void Vector4::dDQfromW ( Vector4 dq,
Vector w,
Vector4 q 
) [static]

Definition at line 139 of file Vector4.cpp.

float& Vector4::operator[] ( const int  m  )  [inline]

Definition at line 140 of file Vector4.h.

References DIALOG_ASSERT, and V.

float const& Vector4::operator[] ( const int  m  )  const [inline]

Definition at line 141 of file Vector4.h.

References DIALOG_ASSERT, and V.

Vector4::operator float * (  )  [inline]

Definition at line 143 of file Vector4.h.

References V.

Vector4 & Vector4::getNullVector (  )  [static]

Definition at line 39 of file Vector4.cpp.

References zero().


Member Data Documentation

float Vector4::V[4] [protected]

Definition at line 147 of file Vector4.h.

Referenced by getRotationMatrix(), lerp(), Normalize(), operator float *(), operator+=(), operator==(), operator[](), setQuatFromAxisAndAngle(), Vector4(), and zero().


The documentation for this class was generated from the following files:
Generated on Mon Feb 16 15:15:08 2009 for Scorched3D by  doxygen 1.5.3