math.rad

Convert degrees to radians

Prototype

r = math.rad (deg)

Description

Convert v from degrees to radians. Note that math.deg is the inverse operation.

math.rad (60) --> 1.0471975511966
assert (math.pi / 180 == math.rad (1))   --> (they are the same)

Lua functions

Topics