7 #ifndef __solve_RayDiskIntersect_h__ 8 #define __solve_RayDiskIntersect_h__ 29 static void resolveContact(
const Vector<3,T>& center,
50 const T incident=dot(facing,direction);
55 const T range=(dot(facing,center)-dot(facing,origin))/incident;
57 intersection=origin+direction*range;
61 if(magnitudeSquared(intersection-center)>radius*radius)
Find intersection between ray and circular solid.
Definition: RayDiskIntersect.h:21
kernel
Definition: namespace.dox:3