TORCS  1.3.10
The Open Racing Car Simulator
Loading...
Searching...
No Matches
Polytope Class Referenceabstract

#include <Polytope.h>

Inheritance diagram for Polytope:
Collaboration diagram for Polytope:

Public Member Functions

 Polytope (const VertexBase &b, int c, const unsigned int v[])
virtual ~Polytope ()
virtual Point support (const Vector &) const =0
const Point & operator[] (int i) const
int numVerts () const
Public Member Functions inherited from Convex
ShapeType getType () const
virtual ~Convex ()
virtual BBox bbox (const Transform &t) const
Public Member Functions inherited from Shape
virtual ~Shape ()

Private Attributes

const VertexBase & base
IndexArray index

Detailed Description

Definition at line 38 of file Polytope.h.

Constructor & Destructor Documentation

◆ Polytope()

Polytope::Polytope ( const VertexBase & b,
int c,
const unsigned int v[] )
inline

Definition at line 40 of file Polytope.h.

◆ ~Polytope()

virtual Polytope::~Polytope ( )
inlinevirtual

Definition at line 42 of file Polytope.h.

Member Function Documentation

◆ numVerts()

int Polytope::numVerts ( ) const
inline

Definition at line 46 of file Polytope.h.

◆ operator[]()

const Point & Polytope::operator[] ( int i) const
inline

Definition at line 45 of file Polytope.h.

◆ support()

virtual Point Polytope::support ( const Vector & ) const
pure virtual

Implements Convex.

Implemented in Polygon, Polyhedron, and Simplex.

Member Data Documentation

◆ base

const VertexBase& Polytope::base
private

Definition at line 49 of file Polytope.h.

◆ index

IndexArray Polytope::index
private

Definition at line 50 of file Polytope.h.


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/src/Polytope.h