Warcraft III resources & community, 2003–2006 · archived

GetChordLength

not rated
Submitted by AltSubmitterCalculations0 downloads
Takes radius of circle, and the angle created by the radii drawn from the two endpoints of the chord to the center. Another simple, yet very useful function.

Source

function GetChordLength takes real radius, real centAngle returns real
    return ((SinBJ((centAngle/2)) * radius) * 2)
endfunction

Comments

0

No comments.