Skip to main content

Module ray

Module ray 

Source
Expand description

Where a ray crosses a triangle, in single or double precision, one test for every caller so that neighbouring triangles agree on the edge they share.

Traits§

RayReal
A coordinate ray_triangle works in, with its tolerances.

Functions§

ray_triangle
The ray parameter where the ray from origin along direction crosses triangle abc, negative for a crossing behind the origin; whether one behind counts is the caller’s to say. For a unit direction it is a distance. A ray parallel to the triangle’s plane, or a triangle with no area, is absent.