Vector Class Reference

#include <Matrix.h>

List of all members.

Public Member Functions

 Vector ()
 Vector (const float x, const float y, const float z, const float w=1.0f)
 Vector (const Vector &other)
float getX () const
float getY () const
float getZ () const
float getW () const
void setX (const float x)
void setY (const float y)
void setZ (const float z)
void setW (const float w)
void setXYZW (const float x, const float y, const float z, const float w=1.0f)
float getMagnitude () const
float getSquareMagnitude () const
void normalize ()
void mapToReal ()
Vectoroperator= (const Vector &other)
bool operator== (const Vector &other) const
bool operator!= (const Vector &other) const
bool operator< (const Vector &other) const
bool operator<= (const Vector &other) const
bool operator> (const Vector &other) const
bool operator>= (const Vector &other) const
Vectoroperator+= (const Vector &other)
Vectoroperator-= (const Vector &other)
Vectoroperator*= (const float scale)
Vectoroperator/= (const float scale)
const Vector operator+ (const Vector &other) const
const Vector operator- (const Vector &other) const
const Vector operator* (const float scale) const
const Vector operator/ (const float scale) const
float dotProduct (const Vector &other) const
Vector crossProduct (const Vector &other) const
Vector rotateAroundAxis (const Vector &axis, float theta) const
Vector rotateThetaPhi (const float Theta, const float Phi) const
const Vector operator* (const Matrix &other) const
string toString () const

Protected Attributes

float _x
float _y
float _z
float _w

Friends

class Matrix

Constructor & Destructor Documentation

Vector::Vector (  ) 
Vector::Vector ( const float  x,
const float  y,
const float  z,
const float  w = 1.0f 
)
Vector::Vector ( const Vector other  ) 

Member Function Documentation

Vector Vector::crossProduct ( const Vector other  )  const
float Vector::dotProduct ( const Vector other  )  const
float Vector::getMagnitude (  )  const
float Vector::getSquareMagnitude (  )  const
float Vector::getW (  )  const
float Vector::getX (  )  const
float Vector::getY (  )  const
float Vector::getZ (  )  const
void Vector::mapToReal (  ) 
void Vector::normalize (  ) 
bool Vector::operator!= ( const Vector other  )  const
const Vector Vector::operator* ( const Matrix other  )  const
const Vector Vector::operator* ( const float  scale  )  const
Vector & Vector::operator*= ( const float  scale  ) 
const Vector Vector::operator+ ( const Vector other  )  const
Vector & Vector::operator+= ( const Vector other  ) 
const Vector Vector::operator- ( const Vector other  )  const
Vector & Vector::operator-= ( const Vector other  ) 
const Vector Vector::operator/ ( const float  scale  )  const
Vector & Vector::operator/= ( const float  scale  ) 
bool Vector::operator< ( const Vector other  )  const
bool Vector::operator<= ( const Vector other  )  const
Vector & Vector::operator= ( const Vector other  ) 
bool Vector::operator== ( const Vector other  )  const
bool Vector::operator> ( const Vector other  )  const
bool Vector::operator>= ( const Vector other  )  const
Vector Vector::rotateAroundAxis ( const Vector axis,
float  theta 
) const
Vector Vector::rotateThetaPhi ( const float  Theta,
const float  Phi 
) const
void Vector::setW ( const float  w  ) 
void Vector::setX ( const float  x  ) 
void Vector::setXYZW ( const float  x,
const float  y,
const float  z,
const float  w = 1.0f 
)
void Vector::setY ( const float  y  ) 
void Vector::setZ ( const float  z  ) 
string Vector::toString (  )  const

Friends And Related Function Documentation

friend class Matrix [friend]

Member Data Documentation

float Vector::_w [protected]
float Vector::_x [protected]
float Vector::_y [protected]
float Vector::_z [protected]

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

Generated on Thu Jan 14 20:50:13 2010 for TerrainEditor by  doxygen 1.6.1