K3dVector4 Class Reference

#include <K3dVector4.h>

Inheritance diagram for K3dVector4:

K3dString List of all members.

Public Member Functions

 K3dVector4 ()
 K3dVector4 (const K3dVector4 &rkV)
 K3dVector4 (const float afVector[4])
 K3dVector4 (const float fX, const float fY, const float fZ, const float fW)
 K3dVector4 (const unsigned char aucVector[4])
 ~K3dVector4 ()
 Destructor.
float * GetVector ()
float & operator[] (int index)
void Set (K3dVector4 &_rkVec)
void Set (float _rkVector[4])
void Set (const float fX, const float fY, const float fZ, const float fW)
float GetScalar (const int index)
void SetScalar (const float fScalar, const int index)
K3dVector4operator= (K3dVector4 &rkV)
bool operator== (K3dVector4 &rkV)
bool operator!= (K3dVector4 &rkV)
bool operator< (K3dVector4 &rkV)
bool operator<= (K3dVector4 &rkV)
bool operator> (K3dVector4 &rkV)
bool operator>= (K3dVector4 &rkV)
int CompareArrays (K3dVector4 &rkV)
K3dVector4 operator+ (K3dVector4 &rkV)
K3dVector4 operator+ (float fScalar)
K3dVector4 operator- (K3dVector4 &rkVector)
K3dVector4 operator- (float fScalar)
K3dVector4 operator- ()
K3dVector4 operator * (K3dVector4 &rkVector)
K3dVector4 operator * (float fScalar)
K3dVector4 operator/ (K3dVector4 &rkVector)
K3dVector4 operator/ (float fScalar)
K3dVector4operator+= (const K3dVector4 &rkVector)
K3dVector4operator+= (float fScalar)
K3dVector4operator-= (const K3dVector4 &rkVector)
K3dVector4operator-= (float fScalar)
K3dVector4 operator *= (const K3dVector4 &rkVector)
K3dVector4 operator *= (float fScalar)
K3dVector4 operator/= (const K3dVector4 &rkVector)
K3dVector4 operator/= (float fScalar)
K3dVector4 Sqr ()
void Reset ()
float Length ()
float SquaredLength ()
void Normalize ()
void Invert ()
float Dot (const K3dVector4 &_rkV1, const K3dVector4 &_rkkV2)
float Dot (const K3dVector4 &_rkV)

Private Attributes

float m_afVector [4]

Detailed Description

Definition at line 42 of file K3dVector4.h.


Constructor & Destructor Documentation

K3dVector4::K3dVector4 (  ) 

Definition at line 35 of file K3dVector4.cpp.

Referenced by operator *(), operator+(), and operator-().

K3dVector4::K3dVector4 ( const K3dVector4 rkV  ) 

Definition at line 40 of file K3dVector4.cpp.

References m_afVector.

K3dVector4::K3dVector4 ( const float  afVector[4]  ) 

Definition at line 49 of file K3dVector4.cpp.

References m_afVector.

K3dVector4::K3dVector4 ( const float  fX,
const float  fY,
const float  fZ,
const float  fW 
)

Definition at line 71 of file K3dVector4.cpp.

References m_afVector.

K3dVector4::K3dVector4 ( const unsigned char  aucVector[4]  ) 

Definition at line 60 of file K3dVector4.cpp.

References m_afVector.

K3dVector4::~K3dVector4 (  ) 

Destructor.

Definition at line 82 of file K3dVector4.cpp.


Member Function Documentation

float * K3dVector4::GetVector (  )  [inline]

Definition at line 273 of file K3dVector4.h.

References m_afVector.

Referenced by K3dFontBmp::DrawValue().

float & K3dVector4::operator[] ( int  index  )  [inline]

Reimplemented from K3dString.

Definition at line 257 of file K3dVector4.h.

References m_afVector.

void K3dVector4::Set ( K3dVector4 _rkVec  )  [inline]

Definition at line 364 of file K3dVector4.h.

References m_afVector.

Referenced by operator/=().

void K3dVector4::Set ( float  _rkVector[4]  )  [inline]

Definition at line 375 of file K3dVector4.h.

References m_afVector.

void K3dVector4::Set ( const float  fX,
const float  fY,
const float  fZ,
const float  fW 
) [inline]

Definition at line 386 of file K3dVector4.h.

References m_afVector.

float K3dVector4::GetScalar ( const int  index  )  [inline]

Definition at line 281 of file K3dVector4.h.

References m_afVector.

void K3dVector4::SetScalar ( const float  fScalar,
const int  index 
) [inline]

Definition at line 295 of file K3dVector4.h.

References m_afVector.

K3dVector4 & K3dVector4::operator= ( K3dVector4 rkV  ) 

Definition at line 89 of file K3dVector4.cpp.

References m_afVector.

bool K3dVector4::operator== ( K3dVector4 rkV  )  [inline]

Definition at line 173 of file K3dVector4.h.

References m_afVector.

bool K3dVector4::operator!= ( K3dVector4 rkV  )  [inline]

Definition at line 180 of file K3dVector4.h.

References m_afVector.

bool K3dVector4::operator< ( K3dVector4 rkV  )  [inline]

Definition at line 187 of file K3dVector4.h.

References CompareArrays().

bool K3dVector4::operator<= ( K3dVector4 rkV  )  [inline]

Definition at line 194 of file K3dVector4.h.

References CompareArrays().

bool K3dVector4::operator> ( K3dVector4 rkV  )  [inline]

Definition at line 201 of file K3dVector4.h.

References CompareArrays().

bool K3dVector4::operator>= ( K3dVector4 rkV  )  [inline]

Definition at line 208 of file K3dVector4.h.

References CompareArrays().

int K3dVector4::CompareArrays ( K3dVector4 rkV  ) 

Definition at line 314 of file K3dVector4.cpp.

References m_afVector.

Referenced by operator<(), operator<=(), operator>(), and operator>=().

K3dVector4 K3dVector4::operator+ ( K3dVector4 rkV  ) 

Definition at line 101 of file K3dVector4.cpp.

References m_afVector.

K3dVector4 K3dVector4::operator+ ( float  fScalar  ) 

Definition at line 112 of file K3dVector4.cpp.

References K3dVector4(), and m_afVector.

K3dVector4 K3dVector4::operator- ( K3dVector4 rkVector  ) 

Definition at line 180 of file K3dVector4.cpp.

References K3dVector4(), and m_afVector.

K3dVector4 K3dVector4::operator- ( float  fScalar  ) 

Definition at line 194 of file K3dVector4.cpp.

References K3dVector4(), and m_afVector.

K3dVector4 K3dVector4::operator- (  ) 

Definition at line 207 of file K3dVector4.cpp.

References m_afVector.

K3dVector4 K3dVector4::operator * ( K3dVector4 rkVector  ) 

Definition at line 278 of file K3dVector4.cpp.

References K3dVector4(), and m_afVector.

K3dVector4 K3dVector4::operator * ( float  fScalar  ) 

Definition at line 218 of file K3dVector4.cpp.

References K3dVector4(), and m_afVector.

K3dVector4 K3dVector4::operator/ ( K3dVector4 rkVector  ) 

Definition at line 293 of file K3dVector4.cpp.

References m_afVector.

K3dVector4 K3dVector4::operator/ ( float  fScalar  )  [inline]

Definition at line 240 of file K3dVector4.h.

References m_afVector.

K3dVector4 & K3dVector4::operator+= ( const K3dVector4 rkVector  ) 

Definition at line 128 of file K3dVector4.cpp.

References m_afVector.

K3dVector4 & K3dVector4::operator+= ( float  fScalar  ) 

Definition at line 141 of file K3dVector4.cpp.

References m_afVector.

K3dVector4 & K3dVector4::operator-= ( const K3dVector4 rkVector  ) 

Definition at line 167 of file K3dVector4.cpp.

References m_afVector.

K3dVector4 & K3dVector4::operator-= ( float  fScalar  ) 

Definition at line 154 of file K3dVector4.cpp.

References m_afVector.

K3dVector4 K3dVector4::operator *= ( const K3dVector4 rkVector  ) 

Definition at line 233 of file K3dVector4.cpp.

References m_afVector.

K3dVector4 K3dVector4::operator *= ( float  fScalar  ) 

Definition at line 246 of file K3dVector4.cpp.

References m_afVector.

K3dVector4 K3dVector4::operator/= ( const K3dVector4 rkVector  ) 

Definition at line 259 of file K3dVector4.cpp.

References m_afVector.

K3dVector4 K3dVector4::operator/= ( float  fScalar  )  [inline]

Definition at line 217 of file K3dVector4.h.

References m_afVector, and Set().

K3dVector4 K3dVector4::Sqr (  )  [inline]

Definition at line 438 of file K3dVector4.h.

void K3dVector4::Reset (  )  [inline]

Definition at line 356 of file K3dVector4.h.

References m_afVector.

float K3dVector4::Length (  )  [inline]

Definition at line 419 of file K3dVector4.h.

References m_afVector.

Referenced by Normalize().

float K3dVector4::SquaredLength (  )  [inline]

Definition at line 427 of file K3dVector4.h.

References m_afVector.

void K3dVector4::Normalize (  )  [inline]

Definition at line 398 of file K3dVector4.h.

References Length(), and m_afVector.

void K3dVector4::Invert (  )  [inline]

Definition at line 309 of file K3dVector4.h.

References m_afVector.

float K3dVector4::Dot ( const K3dVector4 _rkV1,
const K3dVector4 _rkkV2 
) [inline]

Definition at line 321 of file K3dVector4.h.

References m_afVector.

float K3dVector4::Dot ( const K3dVector4 _rkV  )  [inline]

Definition at line 338 of file K3dVector4.h.

References m_afVector.


Member Data Documentation

float K3dVector4::m_afVector[4] [private]

Definition at line 46 of file K3dVector4.h.

Referenced by CompareArrays(), Dot(), GetScalar(), GetVector(), Invert(), K3dVector4(), Length(), Normalize(), operator *(), operator *=(), operator!=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator=(), operator==(), operator[](), Reset(), Set(), SetScalar(), and SquaredLength().


The documentation for this class was generated from the following files:
Generated on Thu Aug 16 23:53:34 2007 for K3dEngine by  doxygen 1.5.0