[Haskell-cafe] Geometry

Chaddaï Fouché chaddai.fouche at gmail.com
Sun Aug 26 21:24:14 EDT 2007

You've got a which is the radius of the circle, and b which is the
length of the arc, thus you've got the angle between the two red
radiuses : u = b / a
So with basic trigonometry, we can deduce a - x = a * cos(u/2)
x = a *( cos(u/2) - 1)


More information about the Haskell-Cafe mailing list