RobinTrace
Private Member Functions | Friends | List of all members
shape Class Referenceabstract

Virtual class for shapes. More...

#include <shape.h>

Inheritance diagram for shape:
[legend]

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.
 

Detailed Description

Virtual class for shapes.


The documentation for this class was generated from the following file: