Trace-line

From Wosabi Wiki
Jump to navigation Jump to search

When given some geometry, a trace-line operation is analogous to a laser pointer and the intersecting laser-dot. When given an beginning- and an end-vector, the function returns a fraction within the domain [0,1].

Whenever the trace-line is not intersected, a NaN can also be returned.