|
RobinTrace
|
Virtual class for shapes. More...
#include <shape.h>
Private Member Functions | |
| virtual void | intersect (ray &r)=0 |
Operate the intersection of ray r with shape. | |
| virtual Vec3 | normal (const ray &r)=0 |
Compute the normal of shape at current ray r position. | |
| virtual std::string | print_str () const =0 |
| String for printing the object. | |
Friends | |
| std::ostream & | operator<< (std::ostream &out, const shape &shp) |
| Printer. | |
Virtual class for shapes.