Vector Class Reference

#include <Vector.h>

List of all members.

Public Member Functions

 Vector ()
 Vector (const float fX, const float fY, const float fZ)
 Vector (const float vfValues[])
 ~Vector ()
void Set (const float fX, const float fY, const float fZ)
void SetX (const float fX)
void SetY (const float fY)
void SetZ (const float fZ)
const float * Get () const
const float Get (const unsigned int uIndex) const
const float GetX () const
const float GetY () const
const float GetZ () const
const float GetMagnitude () const
const float GetSquaredMagnitude () const
const float GetDot (const Vector &vecOther) const
const Vector GetCross (const Vector &vecOther) const
const Vector GetNormalized () const
const Vector GetInverse () const
void normalize ()
void invert ()
const bool operator== (const Vector &vecOther) const
const bool operator!= (const Vector &vecOther) const
float & operator[] (const unsigned int uIndex)
const float operator[] (const unsigned int uIndex) const
const Vectoroperator+= (const Vector &vecOther)
const Vectoroperator-= (const Vector &vecOther)
const Vectoroperator *= (const Vector &vecOther)
const Vectoroperator *= (const float &fOther)
const Vectoroperator/= (const Vector &vecOther)
const Vectoroperator/= (const float &fOther)
const Vector operator+ (const Vector &vecOther) const
const Vector operator- (const Vector &vecOther) const
const Vector operator * (const Vector &vecOther) const
const Vector operator * (const float &fOther) const
const Vector operator/ (const Vector &vecOther) const
const Vector operator/ (const float &fOther) const
const Vector operator- () const


Detailed Description

Definition at line 6 of file Vector.h.


Constructor & Destructor Documentation

Vector::Vector (  )  [inline]

Definition at line 9 of file Vector.h.

Vector::Vector ( const float  fX,
const float  fY,
const float  fZ 
) [inline]

Definition at line 16 of file Vector.h.

Vector::Vector ( const float  vfValues[]  )  [inline]

Definition at line 23 of file Vector.h.

Vector::~Vector (  )  [inline]

Definition at line 30 of file Vector.h.


Member Function Documentation

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

Definition at line 34 of file Vector.h.

Referenced by operator>>().

void Vector::SetX ( const float  fX  )  [inline]

Definition at line 41 of file Vector.h.

void Vector::SetY ( const float  fY  )  [inline]

Definition at line 46 of file Vector.h.

void Vector::SetZ ( const float  fZ  )  [inline]

Definition at line 51 of file Vector.h.

const float* Vector::Get (  )  const [inline]

Definition at line 56 of file Vector.h.

const float Vector::Get ( const unsigned int  uIndex  )  const [inline]

Definition at line 61 of file Vector.h.

const float Vector::GetX (  )  const [inline]

Definition at line 66 of file Vector.h.

Referenced by GetCross(), GetDot(), Matrix::GetRotated(), Matrix::GetScaled(), Matrix::GetTranslated(), Matrix::Matrix(), Matrix::operator *(), operator *=(), operator+=(), operator-=(), operator/=(), operator<<(), operator==(), Matrix::SetColumn(), Matrix::SetRow(), and Matrix::SetTranslation().

const float Vector::GetY (  )  const [inline]

Definition at line 71 of file Vector.h.

Referenced by GetCross(), GetDot(), Matrix::GetRotated(), Matrix::GetScaled(), Matrix::GetTranslated(), Matrix::Matrix(), Matrix::operator *(), operator *=(), operator+=(), operator-=(), operator/=(), operator<<(), operator==(), Matrix::SetColumn(), Matrix::SetRow(), and Matrix::SetTranslation().

const float Vector::GetZ (  )  const [inline]

Definition at line 76 of file Vector.h.

Referenced by GetCross(), GetDot(), Matrix::GetRotated(), Matrix::GetScaled(), Matrix::GetTranslated(), Matrix::Matrix(), Matrix::operator *(), operator *=(), operator+=(), operator-=(), operator/=(), operator<<(), operator==(), Matrix::SetColumn(), Matrix::SetRow(), and Matrix::SetTranslation().

const float Vector::GetMagnitude (  )  const [inline]

Definition at line 81 of file Vector.h.

Referenced by GetNormalized(), and Quaternion::operator *().

const float Vector::GetSquaredMagnitude (  )  const [inline]

Definition at line 86 of file Vector.h.

const float Vector::GetDot ( const Vector vecOther  )  const [inline]

Definition at line 91 of file Vector.h.

References GetX(), GetY(), and GetZ().

Referenced by Quaternion::operator *=(), and Quaternion::Quaternion().

Here is the call graph for this function:

const Vector Vector::GetCross ( const Vector vecOther  )  const [inline]

Definition at line 96 of file Vector.h.

References GetX(), GetY(), and GetZ().

Referenced by Quaternion::Quaternion().

Here is the call graph for this function:

const Vector Vector::GetNormalized (  )  const [inline]

Definition at line 101 of file Vector.h.

References GetMagnitude().

Referenced by Quaternion::Quaternion().

Here is the call graph for this function:

const Vector Vector::GetInverse (  )  const [inline]

Definition at line 112 of file Vector.h.

void Vector::normalize (  )  [inline]

Definition at line 117 of file Vector.h.

void Vector::invert (  )  [inline]

Definition at line 122 of file Vector.h.

const bool Vector::operator== ( const Vector vecOther  )  const [inline]

Definition at line 127 of file Vector.h.

References GetX(), GetY(), and GetZ().

Here is the call graph for this function:

const bool Vector::operator!= ( const Vector vecOther  )  const [inline]

Definition at line 132 of file Vector.h.

float& Vector::operator[] ( const unsigned int  uIndex  )  [inline]

Definition at line 137 of file Vector.h.

const float Vector::operator[] ( const unsigned int  uIndex  )  const [inline]

Definition at line 142 of file Vector.h.

const Vector& Vector::operator+= ( const Vector vecOther  )  [inline]

Definition at line 147 of file Vector.h.

References GetX(), GetY(), and GetZ().

Here is the call graph for this function:

const Vector& Vector::operator-= ( const Vector vecOther  )  [inline]

Definition at line 155 of file Vector.h.

References GetX(), GetY(), and GetZ().

Here is the call graph for this function:

const Vector& Vector::operator *= ( const Vector vecOther  )  [inline]

Definition at line 163 of file Vector.h.

References GetX(), GetY(), and GetZ().

Here is the call graph for this function:

const Vector& Vector::operator *= ( const float &  fOther  )  [inline]

Definition at line 171 of file Vector.h.

const Vector& Vector::operator/= ( const Vector vecOther  )  [inline]

Definition at line 179 of file Vector.h.

References GetX(), GetY(), and GetZ().

Here is the call graph for this function:

const Vector& Vector::operator/= ( const float &  fOther  )  [inline]

Definition at line 187 of file Vector.h.

const Vector Vector::operator+ ( const Vector vecOther  )  const [inline]

Definition at line 195 of file Vector.h.

const Vector Vector::operator- ( const Vector vecOther  )  const [inline]

Definition at line 202 of file Vector.h.

const Vector Vector::operator * ( const Vector vecOther  )  const [inline]

Definition at line 209 of file Vector.h.

const Vector Vector::operator * ( const float &  fOther  )  const [inline]

Definition at line 216 of file Vector.h.

const Vector Vector::operator/ ( const Vector vecOther  )  const [inline]

Definition at line 223 of file Vector.h.

const Vector Vector::operator/ ( const float &  fOther  )  const [inline]

Definition at line 230 of file Vector.h.

const Vector Vector::operator- (  )  const [inline]

Definition at line 237 of file Vector.h.


The documentation for this class was generated from the following file:
Generated on Mon Dec 10 18:18:27 2007 for VisLU by  doxygen 1.5.4