http://sidneys77crlfslcr7zmj3msmxchgnxhrxlp3p3kbaswo7twchjnicid.onion/programming/2022/03/23/raytracing.html
Shape ( vf3d origin , olc :: Pixel fill ) : origin ( origin ), fill ( fill ) {} }; We’ll also give the Sphere class a notion of a radius , which is not shared by all Shape -derived classes: class Sphere : public Shape { public: float radius ; // Delete the default constructor (see "Shape() = delete;"). Sphere () = delete ; // Add explicit constructor that initializes Shape::origin, Shape::fill, and Sphere::radius.