Jump to content

ToDegrees

From CMM Wiki
Revision as of 10:12, 11 November 2025 by Ozdeadmeat (talk | contribs) (toDegrees – created via PowerShell script (2025-11-11T21:12:33Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
Environment: Mission Scripting
Function: toDegrees
Function Description: Converts radians to degrees using the mathematical formula radians multiplied by 180 divided by pi.
File Location: cmm.positionFunctions.lua
Syntax: CMM.toDegrees( number radians )
Return Value: number
Parameters: Name Description
radiansAngle in radians to be converted to degrees.
Example: CMM.toDegrees(math.pi / 2)
Example Description: Converts pi/2 radians to degrees, returning 90.
Related Functions:
Notes: