librtl

rtl_quadric Class Reference

Base class for all quadric objects. More...

#include <quadric.h>

Inherits rtl_object.

Inherited by rtl_infcone, rtl_infcylinder and rtl_sphere.

List of all members.

Protected Members


Detailed Description

Base class for all quadric objects.

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.


Member Function Documentation

rtl_quadric::rtl_quadric() [protected]

inline jFlt rtl_quadric::lclintersect( const rtl_ray& ) [protected]

Reimplemented from rtl_object.

Reimplemented in rtl_infcone.

inline jFlt rtl_quadric::rehit() [protected]

Reimplemented from rtl_object.

virtual void rtl_quadric::coefficients( const rtl_ray&, jFlt* ) = 0 [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.


Member Data Documentation

jFlt rtl_quadric::s[2] [protected]

jInt rtl_quadric::si [protected]


The documentation for this class was generated from the following file:
JSP / librtl v0.2 mtigges@cpsc.ucalgary.ca