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

3-Vector class


Constructor & Destructor Documentation

Vector::Vector (  )  [inline]

Construct a new vector object

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

Construct a new vector object

Parameters:
fX X value
fY Y value
fZ Z value
Vector::Vector ( const float  vfValues[]  )  [inline]

Construct a new vector object

Parameters:
vfValues Value to set the vector
Vector::~Vector (  )  [inline]

Destroy the object


Member Function Documentation

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

Get the value at a given index of the vector Index

Returns:
Value of the given index
const float* Vector::Get (  )  const [inline]

Get the values of the vector

Returns:
Values of the vector
const Vector Vector::GetCross ( const Vector vecOther  )  const [inline]

Get the cross product of the vector

Returns:
The cross product
const float Vector::GetDot ( const Vector vecOther  )  const [inline]

Get the dot product of the vector

Returns:
The dot product
const Vector Vector::GetInverse (  )  const [inline]

Get the inverse vector

Returns:
the inverse vector
const float Vector::GetMagnitude (  )  const [inline]

Get the magnitude of the vector

Returns:
The magnitude
const Vector Vector::GetNormalized (  )  const [inline]

Get the normalized vector

Returns:
The normalized vector
const float Vector::GetSquaredMagnitude (  )  const [inline]

Get the squared magnitude of the vector

Returns:
The squared magnitude
const float Vector::GetX (  )  const [inline]

Get the x value

Returns:
The x value
const float Vector::GetY (  )  const [inline]

Get the y value

Returns:
The y value
const float Vector::GetZ (  )  const [inline]

Get the z value

Returns:
The z value
void Vector::invert (  )  [inline]

Invert the vector

void Vector::normalize (  )  [inline]

Normalize the vector

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

Set the values of the vector

Parameters:
fX X value
fY Y value
fZ Z vlaue
void Vector::SetX ( const float  fX  )  [inline]

Set the x value of the vector

Parameters:
fX X value
void Vector::SetY ( const float  fY  )  [inline]

Set the y value of the vector

Parameters:
fY Y value
void Vector::SetZ ( const float  fZ  )  [inline]

Set the z value of the vector

Parameters:
fZ Z value

The documentation for this class was generated from the following file:

Generated on Tue Dec 8 16:10:51 2009 for VisLab by  doxygen 1.6.1