Distance from one point to a sphere not on the same plane

28 Views Asked by At

I am trying to measure the distance that a point would be over a sphere. To explain further:

Point $A$ is $(-580,1130,2500)$. Point $B$ is $(-1500,3600,7570)$. However, Point $A$ creates a sphere with a radius of $4500$ at the top. The sphere is most likely extending to Point $B$ at some length.

I am trying to find if the top of Point $B$ is outside of the sphere that Point $A$ creates. If so, how much outside of the sphere is it.