Base class for all quadric objects. More...
#include <quadric.h>
Inherits rtl_object.
Inherited by rtl_infcone, rtl_infcylinder and rtl_sphere.
A quadric object is one which is implicitly defined with a quadratic equation. Examples include spheres, cones and cylinders. In fact these are implemented. Future implementations may include Hyperolae, Parabolae etc.
[protected]
[protected] [protected]
Reimplemented from rtl_object.
[protected, pure virtual]This function must be implemented in sub-classes. It sets the coefficients for the quadratic that results from substituting the ray's line equation into the quadratic equation for the quadric surface. The array is there fore three elements long. The constant coefficient comes first and the square coefficient last.
Reimplemented in rtl_sphere, rtl_infcylinder and rtl_infcone.
[protected]
[protected]