Warcraft III resources & community, 2003–2006 · archived

GetArcLength

not rated
Submitted by AltSubmitterCalculations0 downloads
Takes radius, and central angle and returns the length of the arc created by two radii drawn from the center of the circle to the two endpoints of the arc. Expects degrees.

Source

function GetArcLength takes real radius, real centAngle returns real
    return ((2*bj_PI*radius)*(centAngle/360))
endfunction

Comments

0

No comments.