Class for representing a cylinder. More...
#include <Inventor/SbCylinder.h>
Public Member Functions | |
SbCylinder () | |
Default constructor. | |
SbCylinder (const SbLine &a, float r) | |
Constructor that takes an axis and radius. | |
void | setValue (const SbLine &a, float r) |
Change the axis and radius. | |
void | setAxis (const SbLine &a) |
Set the axis. | |
void | setRadius (float r) |
Set the radius. | |
const SbLine & | getAxis () const |
Return the axis. | |
float | getRadius () const |
Return the radius. | |
SbBool | intersect (const SbLine &l, SbVec3f &intersection) const |
Intersect line and cylinder, returning TRUE if there is an intersection. | |
SbBool | intersect (const SbLine &l, SbVec3f &enter, SbVec3f &exit) const |
Intersect line and cylinder, returning TRUE if there is an intersection. | |
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
Definition at line 56 of file SbCylinder.h.
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.
|
inline |
Return the axis.
Definition at line 86 of file SbCylinder.h.
|
inline |
Return the radius.
Definition at line 90 of file SbCylinder.h.
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.