TORCS  1.3.9
The Open Racing Car Simulator
Point Class Reference

#include <Point.h>

Inheritance diagram for Point:
Collaboration diagram for Point:

Public Member Functions

 Point ()
 
 Point (const float p[3])
 
 Point (const double p[3])
 
 Point (Scalar x, Scalar y, Scalar z)
 
Pointoperator+= (const Vector &v)
 
Pointoperator-= (const Vector &v)
 
Pointoperator= (const Vector &v)
 
void setInf (const Point &p)
 
void setSup (const Point &p)
 
- Public Member Functions inherited from Vector
 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
 
- Public Member Functions inherited from Tuple3
 Tuple3 ()
 
 Tuple3 (const float v[3])
 
 Tuple3 (const double v[3])
 
 Tuple3 (Scalar x, Scalar y, Scalar z)
 
Scalaroperator[] (int i)
 
const Scalaroperator[] (int i) const
 
ScalargetValue ()
 
const ScalargetValue () const
 
void setValue (const float v[3])
 
void setValue (const double v[3])
 
void setValue (Scalar x, Scalar y, Scalar z)
 

Additional Inherited Members

- Static Public Member Functions inherited from Vector
static Vector random ()
 
- Protected Attributes inherited from Tuple3
Scalar comp [3]
 

Detailed Description

Definition at line 34 of file Point.h.

Constructor & Destructor Documentation

◆ Point() [1/4]

Point::Point ( )
inline

Definition at line 36 of file Point.h.

◆ Point() [2/4]

Point::Point ( const float  p[3])
inline

Definition at line 37 of file Point.h.

◆ Point() [3/4]

Point::Point ( const double  p[3])
inline

Definition at line 38 of file Point.h.

◆ Point() [4/4]

Point::Point ( Scalar  x,
Scalar  y,
Scalar  z 
)
inline

Definition at line 39 of file Point.h.

Member Function Documentation

◆ operator+=()

Point & Point::operator+= ( const Vector v)
inline

Definition at line 65 of file Point.h.

◆ operator-=()

Point & Point::operator-= ( const Vector v)
inline

Definition at line 70 of file Point.h.

◆ operator=()

Point & Point::operator= ( const Vector v)
inline

Definition at line 75 of file Point.h.

◆ setInf()

void Point::setInf ( const Point p)
inline

Definition at line 80 of file Point.h.

Here is the call graph for this function:

◆ setSup()

void Point::setSup ( const Point p)
inline

Definition at line 84 of file Point.h.

Here is the call graph for this function:

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