Struct Ray

Struct Documentation

struct Ray

Simple ray (origin + direction).

Note

Direction should be normalized for consistent RayHit::t scaling.

Public Members

Eigen::Vector3f o

Origin of the ray (world)

Eigen::Vector3f d

Direction of the ray (unit length recommended)