vmmlib
1.11.0
Templatized C++ vector and matrix math library

Public Types  
typedef vector< 3, T >  vec3 
typedef vector< 4, T >  vec4 
Public Member Functions  
Ray (const vec3 &origin, const vec3 &direction)  
Constructor. More...  
T  test (const vec4 &sphere) const 
RaySphere Intersection. More...  
RaySphere Intersection.
Optimized solution from "Realtime Rendering 3rd Edition"
center  Sphere center 
radius  Sphere radius 
distance  Intersection distance 
Sphere behind the ray origin and ray origin outside the sphere
Squared distance from sphere center to the projection
Distance from the sphere center to the surface along the ray direction