Ask HN: Anyone Have Expertise in Trigonometry?

  • Considering that only one of those circles' radius is variable, and the other two circles intersect with the yellow loop, you can determine the equation of the yellow loop, which will give you the position of the white point, at any time, in constant time.

  • If you can't figure it out, memoize the results in a table and interpolate.

  • you forgot to mention the pay rate?