#include <raytracing.hpp>


Public Member Functions | |
| Plane (Vector3f center=Vector3f{0.0f, 0.0f, 0.0f}, Vector3f normal=Vector3f{1.0f, 0.0f, 0.0f}) | |
| Constructor.   | |
| const Vector3f & | center (void) const | 
| Return origin point.  | |
| bool | set_center (Vector3f center) | 
| Update center point.  | |
| const Vector3f & | normal (void) const | 
| Return normal vector.  | |
| bool | set_normal (Vector3f normal) | 
| Update normal vector.  | |
| bool | intersect (const Ray &ray, Intersection &intersection) | 
| Perform intersection between a ray and the current object.   | |
Constructor.
| center | Center of sphere | 
| radius | Radius of sphere | 

| bool raytracing::Plane::intersect | ( | const Ray & | ray, | 
| Intersection & | intersection | ||
| ) |  [virtual] | 
        
Perform intersection between a ray and the current object.
| ray | Ray to intersect with (input) | 
| intersection | Intersection point (output) | 
Implements raytracing::Object.

 1.7.6.1