Re: [Algorithms] Nearest point on plane for 2D IK
Brought to you by:
vexxed72
From: Jeff L. <je...@di...> - 2000-08-29 21:18:31
|
Plug for Dave Eberly's Magic-Software site goes here: http://www.magic-software.com/MgcIntersection.html Looks like the code you need is : Lin3Sphr.h, Lin3Sphr.cpp -Jeff At 09:56 PM 8/29/2000 +0300, you wrote: >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. >-- > >_______________________________________________ >GDAlgorithms-list mailing list >GDA...@li... >http://lists.sourceforge.net/mailman/listinfo/gdalgorithms-list |