| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/disc.h>

Public Member Functions | |
| Disc (double height=0.0, double rad=1.0, double theta=360.0) | |
| Constructs a disc that is parallel to the xz-plane, lifted by height. | |
| Disc (const Vector ¢er, const Vector &normal, double rad=1.0, double theta=360.0) | |
| Constructs a disc specified by its center, normal and radius. | |
| void | setHeight (double heigth) |
| Sets the height (y-component of the center) of the disc. | |
| double | getHeight () const |
| Returns the height (y-component of the center) of the disc. | |
| void | setRadius (double rad) |
| Sets the radius of the disc. | |
| double | getRadius () const |
| Returns the radius of the disc. | |
| void | setCenter (const Vector &) |
| Sets the center of the disc. | |
| Vector | getCenter () const |
| Returns the center of the disc. | |
| void | setNormal (const Vector &) |
| Sets the normal of the disc. | |
| Vector | getNormal () const |
| Returns the normal of the disc. | |
| void | setTheta (double theta) |
| Sets the theta value in degree. | |
| double | getTheta () const |
| Sets the theta value in degree. | |
| virtual Bounds | boundingBox () const |
| Bounding box of the disc. | |
| VRS_TYPEINFO (Disc, Shape) | |
| VRS_SERIALIZABLE (Disc) | |
| VRS::Disc::Disc | ( | double | height = 0.0, |
|
| double | rad = 1.0, |
|||
| double | theta = 360.0 | |||
| ) |
Constructs a disc that is parallel to the xz-plane, lifted by height.
theta is measured from the positive x-axis, counterclockwise when viewed from above.
| VRS::Disc::Disc | ( | const Vector & | center, | |
| const Vector & | normal, | |||
| double | rad = 1.0, |
|||
| double | theta = 360.0 | |||
| ) |
Constructs a disc specified by its center, normal and radius.
theta is measured from the positive x-axis, counterclockwise when viewed from above.
| void VRS::Disc::setHeight | ( | double | heigth | ) |
Sets the height (y-component of the center) of the disc.
| double VRS::Disc::getHeight | ( | ) | const [inline] |
Returns the height (y-component of the center) of the disc.
| void VRS::Disc::setRadius | ( | double | rad | ) |
Sets the radius of the disc.
| double VRS::Disc::getRadius | ( | ) | const [inline] |
Returns the radius of the disc.
| void VRS::Disc::setCenter | ( | const Vector & | ) |
Sets the center of the disc.
| Vector VRS::Disc::getCenter | ( | ) | const [inline] |
Returns the center of the disc.
| void VRS::Disc::setNormal | ( | const Vector & | ) |
Sets the normal of the disc.
| Vector VRS::Disc::getNormal | ( | ) | const [inline] |
Returns the normal of the disc.
| void VRS::Disc::setTheta | ( | double | theta | ) |
Sets the theta value in degree.
theta is measured from the positive x-axis, counterclockwise when viewed from above.
| double VRS::Disc::getTheta | ( | ) | const [inline] |
Sets the theta value in degree.
theta is measured from the positive x-axis, counterclockwise when viewed from above.
| virtual Bounds VRS::Disc::boundingBox | ( | ) | const [virtual] |
| VRS::Disc::VRS_SERIALIZABLE | ( | Disc | ) |