TORCS  1.3.10
The Open Racing Car Simulator
Loading...
Searching...
No Matches
v3t< T > Class Template Reference

#include <v3_t.h>

Public Member Functions

 v3t ()
 v3t (const v3t< T > &src)
 v3t (const T x, const T y, const T z)
 v3t (const T s)
v3t< T > & operator= (const v3t< T > &src)
v3t< T > & operator+= (const v3t< T > &src)
v3t< T > & operator-= (const v3t< T > &src)
v3t< T > & operator*= (const T s)
v3t< T > & operator/= (const T s)
v3t< T > operator- (void) const
v3t< T > operator+ (const v3t< T > &src) const
v3t< T > operator- (const v3t< T > &src) const
v3t< T > operator* (const T s) const
T operator* (const v3t< T > &src) const
v3t< T > operator/ (const T s) const
int operator== (const v3t< T > &src) const
int operator!= (const v3t< T > &src) const
T len (void)
void normalize (void)
void crossProduct (const v3t< T > &b, v3t< T > &r) const
void dirVector (const v3t< T > *b, v3t< T > *r)
int approxEquals (const v3t< T > &cmp, T eps)

Public Attributes

union { 
   struct { 
      T   x 
      T   y 
      T   z 
   } 
   T   vec [3] 
}; 

Friends

v3t< T > operator* (const T s, const v3t< T > &src)
v3t< T > crossProduct (const v3t< T > &a, const v3t< T > &b)

Detailed Description

template<class T>
class v3t< T >

Definition at line 40 of file v3_t.h.

Constructor & Destructor Documentation

◆ v3t() [1/4]

template<class T>
v3t< T >::v3t ( )
inline

Definition at line 49 of file v3_t.h.

◆ v3t() [2/4]

template<class T>
v3t< T >::v3t ( const v3t< T > & src)
inline

Definition at line 50 of file v3_t.h.

◆ v3t() [3/4]

template<class T>
v3t< T >::v3t ( const T x,
const T y,
const T z )
inline

Definition at line 51 of file v3_t.h.

◆ v3t() [4/4]

template<class T>
v3t< T >::v3t ( const T s)
inline

Definition at line 52 of file v3_t.h.

Member Function Documentation

◆ approxEquals()

template<class T>
int v3t< T >::approxEquals ( const v3t< T > & cmp,
T eps )
inline

Definition at line 162 of file v3_t.h.

Here is the call graph for this function:

◆ crossProduct()

template<class T>
void v3t< T >::crossProduct ( const v3t< T > & b,
v3t< T > & r ) const
inline

Definition at line 206 of file v3_t.h.

Here is the call graph for this function:

◆ dirVector()

template<class T>
void v3t< T >::dirVector ( const v3t< T > * b,
v3t< T > * r )
inline

Definition at line 214 of file v3_t.h.

Here is the call graph for this function:

◆ len()

template<class T>
T v3t< T >::len ( void )
inline

Definition at line 193 of file v3_t.h.

◆ normalize()

template<class T>
void v3t< T >::normalize ( void )
inline

Definition at line 199 of file v3_t.h.

Here is the call graph for this function:

◆ operator!=()

template<class T>
int v3t< T >::operator!= ( const v3t< T > & src) const
inline

Definition at line 155 of file v3_t.h.

Here is the call graph for this function:

◆ operator*() [1/2]

template<class T>
v3t< T > v3t< T >::operator* ( const T s) const
inline

Definition at line 175 of file v3_t.h.

Here is the call graph for this function:

◆ operator*() [2/2]

template<class T>
T v3t< T >::operator* ( const v3t< T > & src) const
inline

Definition at line 181 of file v3_t.h.

Here is the call graph for this function:

◆ operator*=()

template<class T>
v3t< T > & v3t< T >::operator*= ( const T s)
inline

Definition at line 112 of file v3_t.h.

Here is the call graph for this function:

◆ operator+()

template<class T>
v3t< T > v3t< T >::operator+ ( const v3t< T > & src) const
inline

Definition at line 139 of file v3_t.h.

Here is the call graph for this function:

◆ operator+=()

template<class T>
v3t< T > & v3t< T >::operator+= ( const v3t< T > & src)
inline

Definition at line 96 of file v3_t.h.

Here is the call graph for this function:

◆ operator-() [1/2]

template<class T>
v3t< T > v3t< T >::operator- ( const v3t< T > & src) const
inline

Definition at line 133 of file v3_t.h.

Here is the call graph for this function:

◆ operator-() [2/2]

template<class T>
v3t< T > v3t< T >::operator- ( void ) const
inline

Definition at line 127 of file v3_t.h.

Here is the call graph for this function:

◆ operator-=()

template<class T>
v3t< T > & v3t< T >::operator-= ( const v3t< T > & src)
inline

Definition at line 104 of file v3_t.h.

Here is the call graph for this function:

◆ operator/()

template<class T>
v3t< T > v3t< T >::operator/ ( const T s) const
inline

Definition at line 187 of file v3_t.h.

Here is the call graph for this function:

◆ operator/=()

template<class T>
v3t< T > & v3t< T >::operator/= ( const T s)
inline

Definition at line 120 of file v3_t.h.

Here is the call graph for this function:

◆ operator=()

template<class T>
v3t< T > & v3t< T >::operator= ( const v3t< T > & src)
inline

Definition at line 88 of file v3_t.h.

Here is the call graph for this function:

◆ operator==()

template<class T>
int v3t< T >::operator== ( const v3t< T > & src) const
inline

Definition at line 145 of file v3_t.h.

Here is the call graph for this function:

◆ crossProduct

template<class T>
v3t< T > crossProduct ( const v3t< T > & a,
const v3t< T > & b )
friend

Definition at line 232 of file v3_t.h.

◆ operator*

template<class T>
v3t< T > operator* ( const T s,
const v3t< T > & src )
friend

Definition at line 225 of file v3_t.h.

Member Data Documentation

◆ [union]

union { ... } v3t< T >

◆ vec

template<class T>
T v3t< T >::vec[3]

Definition at line 83 of file v3_t.h.

◆ x

template<class T>
T v3t< T >::x

Definition at line 82 of file v3_t.h.

◆ y

template<class T>
T v3t< T >::y

Definition at line 82 of file v3_t.h.

◆ z

template<class T>
T v3t< T >::z

Definition at line 82 of file v3_t.h.


The documentation for this class was generated from the following file:
  • C:/Users/berni/Development/torcs_git/torcs-code/torcs/torcs/src/libs/math/v3_t.h