7 #ifndef __solve_PointSphereNearest_h__ 8 #define __solve_PointSphereNearest_h__ 24 static T solve(
const Vector<3,T>& center,
const T radius,
28 static BWORD within(
const Vector<3,T>& center,
const T radius,
37 const T mag=magnitude(to_origin);
40 direction= -T(1)/mag*to_origin;
54 const T mag2=magnitudeSquared(to_origin);
55 const T sum=distance+radius;
57 return (mag2<=(sum*sum));
kernel
Definition: namespace.dox:3
Find nearest point on sphere.
Definition: PointSphereNearest.h:21