RobinTrace
Public Member Functions | Private Member Functions | List of all members
plane Class Reference

Plane shape specialization. More...

#include <plane.h>

Inheritance diagram for plane:
[legend]
Collaboration diagram for plane:
[legend]

Public Member Functions

virtual void intersect (ray &r) override
 Operate the intersection of ray r with the plane. More...
 
virtual Vec3 normal (const ray &r) override
 Compute the plane normal. More...
 

Private Member Functions

virtual std::string print_str () const override
 String for printing the object.
 

Detailed Description

Plane shape specialization.

Member Function Documentation

◆ intersect()

void plane::intersect ( ray r)
overridevirtual

Operate the intersection of ray r with the plane.

The ray is assumed to rest at the current LCS plane, so intersect does nothing for a plane shape.

There are no error cases.

Implements shape.

◆ normal()

Vec3 plane::normal ( const ray r)
overridevirtual

Compute the plane normal.

The plane shape normal is position-invariant. Its value is always

\[ \overrightarrow{N} = (0, 0, -\textrm{sign}(n))\]

There are no error cases.

Implements shape.


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