TORCS  1.3.9
The Open Racing Car Simulator
straight2t< T > Class Template Reference

#include <straight2_t.h>

Public Member Functions

 straight2t ()
 
 straight2t (T x, T y, T dx, T dy)
 
 straight2t (const v2t< T > &anchor, const v2t< T > &dir)
 
v2t< T > intersect (const straight2t< T > &s) const
 
dist (const v2t< T > &p) const
 

Public Attributes

v2t< T > p
 
v2t< T > d
 

Detailed Description

template<class T>
class straight2t< T >

Definition at line 34 of file straight2_t.h.

Constructor & Destructor Documentation

◆ straight2t() [1/3]

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

Definition at line 37 of file straight2_t.h.

◆ straight2t() [2/3]

template<class T>
straight2t< T >::straight2t ( x,
y,
dx,
dy 
)
inline

Definition at line 38 of file straight2_t.h.

◆ straight2t() [3/3]

template<class T>
straight2t< T >::straight2t ( const v2t< T > &  anchor,
const v2t< T > &  dir 
)
inline

Definition at line 40 of file straight2_t.h.

Member Function Documentation

◆ dist()

template<class T >
T straight2t< T >::dist ( const v2t< T > &  p) const
inline

Definition at line 62 of file straight2_t.h.

◆ intersect()

template<class T >
v2t< T > straight2t< T >::intersect ( const straight2t< T > &  s) const
inline

Definition at line 54 of file straight2_t.h.

Member Data Documentation

◆ d

template<class T>
v2t<T> straight2t< T >::d

Definition at line 49 of file straight2_t.h.

◆ p

template<class T>
v2t<T> straight2t< T >::p

Definition at line 48 of file straight2_t.h.


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