Jump to content

ToRadians

From CMM Wiki
Return to CMM Command Reference
Environment: Mission Scripting
Function: toRadians
Function Description: Converts degrees to radians using the mathematical formula degrees multiplied by pi divided by 180.
File Location: cmm.positionFunctions.lua
Syntax: CMM.toRadians( number degrees )
Return Value: number
Parameters: Name Description
degreesAngle in degrees to be converted to radians.
Example: CMM.toRadians(90)
Example Description: Converts 90 degrees to radians, returning pi/2.
Related Functions:
Notes: