five-on-it / apps/client/src/renderer/glass / traceGlass
Function: traceGlass()
traceGlass(
glass,from,dir,t0,t1,leaving?):GlassHit|undefined
Defined in: apps/client/src/renderer/glass.ts:165
The first pane the line from from along the unit dir crosses between t0 and t1 (m): entering a pane from outside (its normal against the line) or, leaving, going out through one from inside. undefined when it crosses none.
Parameters
glass
from
dir
t0
number
t1
number
leaving?
boolean = false
Returns
GlassHit | undefined