TORCS  1.3.10
The Open Racing Car Simulator
Loading...
Searching...
No Matches
Vector.h File Reference
#include "Tuple3.h"
Include dependency graph for Vector.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Vector

Functions

Vector operator+ (const Vector &v1, const Vector &v2)
Vector operator- (const Vector &v1, const Vector &v2)
Vector operator- (const Vector &v)
Vector operator* (const Vector &v, Scalar s)
Vector operator* (Scalar s, const Vector &v)
Vector operator/ (const Vector &v, Scalar s)
Scalar dot (const Vector &v1, const Vector &v2)
Scalar length2 (const Vector &v)
Scalar length (const Vector &v)
bool approxZero (const Vector &v)
bool approxEqual (const Vector &v1, const Vector &v2)
Scalar angle (const Vector &v1, const Vector &v2)
Vector cross (const Vector &v1, const Vector &v2)
Scalar triple (const Vector &v1, const Vector &v2, const Vector &v3)

Function Documentation

◆ angle()

Scalar angle ( const Vector & v1,
const Vector & v2 )
inline

Definition at line 154 of file Vector.h.

Here is the call graph for this function:

◆ approxEqual()

bool approxEqual ( const Vector & v1,
const Vector & v2 )
inline

Definition at line 150 of file Vector.h.

Here is the call graph for this function:

◆ approxZero()

bool approxZero ( const Vector & v)
inline

Definition at line 149 of file Vector.h.

Here is the call graph for this function:

◆ cross()

Vector cross ( const Vector & v1,
const Vector & v2 )
inline

Definition at line 160 of file Vector.h.

◆ dot()

Scalar dot ( const Vector & v1,
const Vector & v2 )
inline

Definition at line 121 of file Vector.h.

◆ length()

Scalar length ( const Vector & v)
inline

Definition at line 147 of file Vector.h.

Here is the call graph for this function:

◆ length2()

Scalar length2 ( const Vector & v)
inline

Definition at line 146 of file Vector.h.

Here is the call graph for this function:

◆ operator*() [1/2]

Vector operator* ( const Vector & v,
Scalar s )
inline

Definition at line 110 of file Vector.h.

◆ operator*() [2/2]

Vector operator* ( Scalar s,
const Vector & v )
inline

Definition at line 114 of file Vector.h.

◆ operator+()

Vector operator+ ( const Vector & v1,
const Vector & v2 )
inline

Definition at line 98 of file Vector.h.

◆ operator-() [1/2]

Vector operator- ( const Vector & v)
inline

Definition at line 106 of file Vector.h.

◆ operator-() [2/2]

Vector operator- ( const Vector & v1,
const Vector & v2 )
inline

Definition at line 102 of file Vector.h.

◆ operator/()

Vector operator/ ( const Vector & v,
Scalar s )
inline

Definition at line 116 of file Vector.h.

Here is the call graph for this function:

◆ triple()

Scalar triple ( const Vector & v1,
const Vector & v2,
const Vector & v3 )
inline

Definition at line 166 of file Vector.h.