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 Vector instance with values 0.0, 0.0, 0.0.

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

Construct a Vector instance from 3 float values.

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

Construct a Vector instance from a float Array.

Vector::~Vector (  )  [inline]

Destructor.


Member Function Documentation

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

Sets new values for this vector.

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

Set a new X-Value for this vector.

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

Set a new Y-Value for this vector.

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

Set a new Z-Value for this vector.

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

Get the values of this vector.

Returns:
an array of float variables.

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

Get a special values of this vector.

Returns:
float.

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

Get the X-value of this vector.

Returns:
float.

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

Get the Y-value of this vector.

Returns:
float.

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

Get the Z-value of this vector.

Returns:
float.

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

Returns the Magnitude of this vectors.

Returns:
float.

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

Returns the squared magnitude of this vectors.

Returns:
float.

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

Returns the dot product of this vectors.

Returns:
float.

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

Returns the cross product of this vectors.

Returns:
float.

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

Returns the normalized vector.

Returns:
float.

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

Returns the inverse vector.

Returns:
float.

void Vector::normalize (  )  [inline]

Normalizes the vector.

void Vector::invert (  )  [inline]

Inverts the vector.

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

Operator for boolean "is equal to".

Returns:
bool.

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

Operator for boolean "is not equal" .

Returns:
bool.

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

Operator to get the value (uIndex) of the vector.

Returns:
float.

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

Operator to get the value (uIndex) of the vector.

Returns:
float.

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

Addition of the vector with another

Returns:
Vector.

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

Subtraction of the vector with another

Returns:
Vector.

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

Multiplication of the vector with another

Returns:
Vector.

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

Multiplication of the vector with an array of float variables.

Returns:
Vector.

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

Division of the vector with an another.

Returns:
Vector.

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

Division of the vector with an array of float variables.

Returns:
Vector.

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

Addition of the vector with another.

Returns:
Vector.

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

Subtraction of the vector with another.

Returns:
Vector.

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

Multiplication of the vector with another.

Returns:
Vector.

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

Multiplication of the vector with an array of float variables.

Returns:
Vector.

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

Division of the vector with another.

Returns:
Vector.

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

Division of the vector with an array of float variables.

Returns:
Vector.

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

Subtraction of the vector with an array of float variables.

Returns:
Vector.


The documentation for this class was generated from the following file:
Generated on Tue Dec 4 01:54:47 2007 for Volumerenderer by  doxygen 1.5.4