Hermes
hermes::Ray3 Class Reference

Public Member Functions

 Ray3 (const point3 &origin, const vec3 &direction)
 Parameters constructor. More...
 
point3 operator() (float t) const
 Computes a point in ray's path at the given parametric coordinate. More...
 

Public Attributes

point3 o
 ray's origin
 
vec3 d
 ray's direction
 

Constructor & Destructor Documentation

◆ Ray3()

hermes::Ray3::Ray3 ( const point3 origin,
const vec3 direction 
)

Parameters constructor.

Note
This constructor normalizes the direction internally
Parameters
origin
direction

Member Function Documentation

◆ operator()()

point3 hermes::Ray3::operator() ( float  t) const
inline

Computes a point in ray's path at the given parametric coordinate.

Parameters
t
Returns
o + d * t

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