Computes the point on the given Ray that is closest to the given point p.
p
a Ray
a Point3D
return location for the closest point3d