Module ray

Module ray 

Source
Expand description

A ray in 3D space.

Structs§

Ray
A struct representing a ray in 3D space.
RayHit
A struct representing a hit record in ray tracing. A Hit record contains the IDs of the primitive, geometry and instance that were hit, as well as the t (distance) value at which the hit occurred.

Constants§

INVALID_ID

Functions§

safe_inverse
Computes the inverse of x avoiding division by zero.