TORCS  1.3.9
The Open Racing Car Simulator
Cylinder Class Reference

#include <Cylinder.h>

Inheritance diagram for Cylinder:
Collaboration diagram for Cylinder:

Public Member Functions

 Cylinder (Scalar r, Scalar h)
 
Point support (const Vector &) 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 ()
 

Protected Attributes

Scalar radius
 
Scalar halfHeight
 

Detailed Description

Definition at line 36 of file Cylinder.h.

Constructor & Destructor Documentation

◆ Cylinder()

Cylinder::Cylinder ( Scalar  r,
Scalar  h 
)
inline

Definition at line 38 of file Cylinder.h.

Member Function Documentation

◆ support()

Point Cylinder::support ( const Vector v) const
virtual

Implements Convex.

Definition at line 33 of file Cylinder.cpp.

Member Data Documentation

◆ halfHeight

Scalar Cylinder::halfHeight
protected

Definition at line 46 of file Cylinder.h.

◆ radius

Scalar Cylinder::radius
protected

Definition at line 45 of file Cylinder.h.


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