Class Sphere

Inheritance Relationships

Base Type

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 Sphere *clone() const override

Create a copy of 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.