Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / Closest point on a sphere to another point

Author
Message
Philip
21
Years of Service
User Offline
Joined: 15th Jun 2003
Location: United Kingdom
Posted: 19th Mar 2007 23:54
Its obviously post geometrical tests night for yours truly tonight.

Here is my function which calculates the closest point on a sphere to another point in 3d space. The example I've posted shows this working in 2d.



Cheer if you like bears! Cheer if you like jam sandwiches!
"I highly recommend Philip" (Philip)

Login to post a reply

Server time is: 2024-11-22 18:37:23
Your offset time is: 2024-11-22 18:37:23