Definition of a cone Tip is on positive z axis. Center of base is on negative z axis. Origin is halway between tip and center of base. More...
#include <shapes.h>
Public Member Functions | |
virtual Shape * | clone () const |
Create a copy of this shape. | |
Cone () | |
Cone (double r, double l) | |
virtual void | print (std::ostream &out=std::cout) const |
Print information about this shape. | |
virtual void | scaleAndPadd (double scale, double padd) |
Scale and padd this shape. | |
Public Attributes | |
double | length |
The length (height) of the cone. | |
double | radius |
The radius of the cone. | |
Static Public Attributes | |
static const std::string | STRING_NAME = "cone" |
The type of the shape, as a string. |
Definition of a cone Tip is on positive z axis. Center of base is on negative z axis. Origin is halway between tip and center of base.
Definition at line 84 of file shapes.cpp.
shapes::Cone::Cone | ( | double | r, |
double | l | ||
) |
Definition at line 90 of file shapes.cpp.
shapes::Shape * shapes::Cone::clone | ( | ) | const [virtual] |
void shapes::Cone::print | ( | std::ostream & | out = std::cout | ) | const [virtual] |
Print information about this shape.
Reimplemented from shapes::Shape.
Definition at line 331 of file shapes.cpp.
void shapes::Cone::scaleAndPadd | ( | double | scale, |
double | padd | ||
) | [virtual] |
double shapes::Cone::length |
double shapes::Cone::radius |
const std::string shapes::Cone::STRING_NAME = "cone" [static] |