Programmer here with severely rusty math skills. If I have a unit circle (i.e. - radius equals 1), and a right triangle with angle theta
whose vertex is at the center of the circle, how I can calculate the minimum distance of the circle from the opposite side of the triangle given a point on the circle?
Pardon my crude drawing, but given the picture I made below, I want to know what the distance is from the purple dot on the circle to the closest point on the blue line that is the opposite side of the right triangle with angle theta
. Is there a formula that, given a point on the circle expressed in sin
and cos
values, and given an angle theta
, will tell me what that distance is? If not a formula, then some source code that iteratively determines the value would be fine too, might even be better.
Note, you may have to zoom the picture to see the small purple dot that lies on the circumference of the circle.