How do I find the nearest point on a sphere?

11.7k Views Asked by At

Say I have a sphere of radius $6$ centered at $(3, 4, 5)$.

What's the nearest point on the surface of the sphere to point $(1, 2, 3)$, which is within the sphere?

I feel that this is a minimization problem involving calculus since we can minimize the distance. Is there a way to do this problem without calculus? I want to program it, and using calculus to solve a minimization problem may not be efficient.

2

There are 2 best solutions below

0
On BEST ANSWER

Find the unit vector from (3,4,5) to (1,2,3), multiply it by 6, that is the point you are looking for.

1
On

Find a line equation passing through the points $(3,4,5)$ and $(1,2,3)$. This line intersect the sphere at two points.(we already know the equation of sphere $(x-3)^2+(y-4)^2+(z-5)^2=6^2$) Chose the point which is closest to $(1,2,3)$ using distance formula.