TORCS  1.3.10
The Open Racing Car Simulator
Loading...
Searching...
No Matches
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)
Point & operator+= (const Vector &v)
Point & operator-= (const Vector &v)
Point & operator= (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)
Vector & operator+= (const Vector &v)
Vector & operator-= (const Vector &v)
Vector & operator*= (Scalar s)
Vector & operator/= (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)
Scalar & operator[] (int i)
const Scalar & operator[] (int i) const
Scalar * getValue ()
const Scalar * getValue () 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.

Here is the call graph for this function:

◆ Point() [3/4]

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

Definition at line 38 of file Point.h.

Here is the call graph for this function:

◆ Point() [4/4]

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

Definition at line 39 of file Point.h.

Here is the call graph for this function:

Member Function Documentation

◆ operator+=()

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

Definition at line 65 of file Point.h.

Here is the call graph for this function:

◆ operator-=()

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

Definition at line 70 of file Point.h.

Here is the call graph for this function:

◆ operator=()

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

Definition at line 75 of file Point.h.

Here is the call graph for this function:

◆ 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:
  • C:/Users/berni/Development/torcs_git/torcs-code/torcs/torcs/src/modules/simu/simuv2/SOLID-2.0/include/3D/Point.h