TORCS  1.3.9
The Open Racing Car Simulator
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 Pointoperator[] (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 VertexBasebase
 
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.

Here is the call graph for this function:

◆ 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 Polyhedron, Polygon, 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: