Class Sphere
Defined in File shapes.h
Inheritance Relationships
Base Type
public shapes::Shape
(Class Shape)
Class Documentation
-
class Sphere : public shapes::Shape
Definition of a sphere.
Public Functions
-
Sphere()
-
Sphere(double r)
The radius of the shpere.
-
virtual void scaleAndPadd(double scale, double padd) override
Uniformly scale and padd this shape.
-
virtual void print(std::ostream &out = std::cout) const override
Print information about this shape.
Public Members
-
double radius
The radius of the sphere.
Public Static Attributes
-
static const std::string STRING_NAME
The type of the shape, as a string.
-
Sphere()