Module truster::intersection[][src]

Expand description

Holds the Intersection struct, and the HitRecord struct, as well as some helpful trait implementations.

Structs

HitRecord stores some information relating to ray-shape intersections. Cloning is near constant time and memory.

Stores some information about intersections between rays and shapes. Cloning is constant time and memory.

Traits

Hit holds a hit function which should return an instance of T if there is a hit. None otherwise. Known implementations: Vec.