torcs - 1.2.2

Vector Class Reference

#include <Vector.h>

Inheritance diagram for Vector:

Inheritance graph
[legend]
Collaboration diagram for Vector:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Vector ()
 Vector (const float v[3])
 Vector (const double v[3])
 Vector (Scalar x, Scalar y, Scalar z)
Vectoroperator+= (const Vector &v)
Vectoroperator-= (const Vector &v)
Vectoroperator *= (Scalar s)
Vectoroperator/= (Scalar s)
Scalar length2 () const
Scalar length () const
bool approxZero () const
void normalize ()
Vector normalized () const
int closestAxis () const
 Vector ()
 Vector (const float v[3])
 Vector (const double v[3])
 Vector (Scalar x, Scalar y, Scalar z)
Vectoroperator+= (const Vector &v)
Vectoroperator-= (const Vector &v)
Vectoroperator *= (Scalar s)
Vectoroperator/= (Scalar s)
Scalar length2 () const
Scalar length () const
bool approxZero () const
void normalize ()
Vector normalized () const
int closestAxis () const

Static Public Member Functions

Vector random ()
Vector random ()

Constructor & Destructor Documentation

Vector::Vector  )  [inline]
 

Vector::Vector const float  v[3]  )  [inline]
 

Vector::Vector const double  v[3]  )  [inline]
 

Vector::Vector Scalar  x,
Scalar  y,
Scalar  z
[inline]
 

Vector::Vector  )  [inline]
 

Vector::Vector const float  v[3]  )  [inline]
 

Vector::Vector const double  v[3]  )  [inline]
 

Vector::Vector Scalar  x,
Scalar  y,
Scalar  z
[inline]
 


Member Function Documentation

bool Vector::approxZero  )  const
 

bool Vector::approxZero  )  const [inline]
 

Here is the call graph for this function:

int Vector::closestAxis  )  const
 

int Vector::closestAxis  )  const [inline]
 

Scalar Vector::length  )  const
 

Scalar Vector::length  )  const [inline]
 

Here is the call graph for this function:

Scalar Vector::length2  )  const
 

Scalar Vector::length2  )  const [inline]
 

Here is the call graph for this function:

void Vector::normalize  ) 
 

void Vector::normalize  )  [inline]
 

Here is the call graph for this function:

Vector Vector::normalized  )  const
 

Vector Vector::normalized  )  const [inline]
 

Here is the call graph for this function:

Vector& Vector::operator *= Scalar  s  ) 
 

Vector & Vector::operator *= Scalar  s  )  [inline]
 

Vector& Vector::operator+= const Vector v  ) 
 

Reimplemented in Point, and Point.

Vector & Vector::operator+= const Vector v  )  [inline]
 

Reimplemented in Point, and Point.

Vector& Vector::operator-= const Vector v  ) 
 

Reimplemented in Point, and Point.

Vector & Vector::operator-= const Vector v  )  [inline]
 

Reimplemented in Point, and Point.

Vector& Vector::operator/= Scalar  s  ) 
 

Vector & Vector::operator/= Scalar  s  )  [inline]
 

Here is the call graph for this function:

Vector Vector::random  )  [static]
 

Vector Vector::random  )  [inline, static]
 

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated at Thu Feb 26 21:54:18 2004 for torcs by doxygen 1.3.3 written by Dimitri van Heesch, © 1997-1999
TORCS © Eric Espié 1999, 2002.