Class for representing a cylinder. More...
#include <Inventor/SbCylinder.h>
Public Member Functions | |
| SbCylinder () | |
| SbCylinder (const SbLine &a, float r) | |
| void | setValue (const SbLine &a, float r) |
| void | setAxis (const SbLine &a) |
| void | setRadius (float r) |
| const SbLine & | getAxis () const |
| float | getRadius () const |
| SbBool | intersect (const SbLine &l, SbVec3f &intersection) const |
| SbBool | intersect (const SbLine &l, SbVec3f &enter, SbVec3f &exit) const |
Class for representing a cylinder.
This class defines a simple cylinder datatype. It is used by the Open Inventor toolkit for arguments or return values.
SbVec3f, SbLine, SbPlane, SbSphere, SoCylinder
| SbCylinder::SbCylinder | ( | ) |
Default constructor.
The cylinder is oriented along the Y axis and has a radius of 1.
| SbCylinder::SbCylinder | ( | const SbLine & | a, | |
| float | r | |||
| ) |
Constructor that takes an axis and radius.
| const SbLine& SbCylinder::getAxis | ( | ) | const [inline] |
Return the axis.
| float SbCylinder::getRadius | ( | ) | const [inline] |
Return the radius.
Intersect line and cylinder, returning TRUE if there is an intersection.
Intersect line and cylinder, returning TRUE if there is an intersection.
| void SbCylinder::setAxis | ( | const SbLine & | a | ) |
Set the axis.
| void SbCylinder::setRadius | ( | float | r | ) |
Set the radius.
| void SbCylinder::setValue | ( | const SbLine & | a, | |
| float | r | |||
| ) |
Change the axis and radius.