100 ) = u ==
"r" ?
"radian"
101 : u ==
"d" ?
"degree"
102 : u ==
"dms" ?
"degree, minute, second"
115 function angle_unit_d2
119 ) = to ==
"r" ? (a *
tau / 360)
123 floor((a - floor(a)) * 60),
124 (a - floor(a) - floor((a - floor(a)) * 60) / 60) * 3600
137 function angle_unit_2d
141 ) = from ==
"r" ? (a * 360 /
tau)
143 : from ==
"dms" ? (a[0] + a[1]/60 + a[2]/3600)
161 : angle_unit_d2( angle_unit_2d( a, from ), to );
178 : angle_unit_d2( angle_unit_2d( a, from ), to );
tau
<decimal> The ratio of a circle's circumference to its radius.
function angle(a, from=angle_unit_default, to=angle_unit_base)
Convert an angle from some units to another.
angle_unit_default
<string> The default units when unspecified.
function a_rad(a)
Shorthand angle conversion for radians.
function angle_unit_name(u=angle_unit_default)
Return the name of an angle unit identifier.
angle_unit_base
<string> The base units for value storage.
function angle_inv(a, from=angle_unit_base, to=angle_unit_default)
Convert an angle from some units to another.
function a_deg(a)
Shorthand angle conversion for degrees.