28#ifndef HERMES_HERMES_GEOMETRY_RAY_H
29#define HERMES_HERMES_GEOMETRY_RAY_H
52 virtual ~Ray2() =
default;
83 virtual ~Ray3() =
default;
106inline std::ostream &operator<<(std::ostream &os,
const Ray3 &r) {
vec2 d
ray's direction
Definition ray.h:64
point2 operator()(float t) const
Computes a point in ray's path at the given parametric coordinate.
Definition ray.h:59
point2 o
ray's origin
Definition ray.h:63
vec3 d
ray's direction
Definition ray.h:95
point3 operator()(float t) const
Computes a point in ray's path at the given parametric coordinate.
Definition ray.h:90
point3 o
ray's origin
Definition ray.h:94
Holds 2-dimensional integer index coordinates.
Definition index.h:50
Geometric vector classes.