Re: [Algorithms] Nearest point on plane for 2D IK
Brought to you by:
vexxed72
From: David K. <da...@ik...> - 2000-08-29 18:49:58
|
Hi, I am looking for an algorithm to compute the intersecting point P between a ray and a sphere. I know the center C and the radius R of the sphere, the origin O of the ray and its direction V. Basically I need to find the closest intersection from O. But that's not all: In addition to this, IF the ray does not intersect or is tangent to the sphere, I need to know the tangential point with the sphere. Does anybody know a fast and accurate solution to this problem? maybe a good web site or some code would greatly help!... Thanks, David Kornmann. -- |