Numerical accuracy limits can push value of normalised dot product above 1.0. Clamp the maximum to 1.0. This will prevent NaNs being generated.
Numerical accuracy limits can push value of normalised dot product above 1.0. Clamp the maximum to 1.0. This will prevent NaNs being generated.

raysect/source,raysect/source