ToDegrees
Appearance
| 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 |
| radians | Angle 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: | ||