Say you have a sphere of radius r centered at the origin, and a vector v <r,0,0>.
Let v' be the vector v rotated about the y-axis by angle theta.
What is the shortest distance between the end of the vector and the z-axis?
The Attempt at a Solution
I drew a picture:
Obviously the shortest distance would be the line normal to the z-axis that would complete a right triangle with the y-axis and the vector v'. The distance is also equal to the radius of a circle, which I drew on the picture.
Because of this, I believe the answer is r*cos(theta), however I am not sure, and I need to know this for a programming assignment. Thank You!
Last edited by a moderator: