Back to reference degrees(rad) Converts the radians angle value rad from the range -PI to PI in the range -180 to 180. Example: The variable angle will contain 180. let angle = gmynd.degrees(Math.PI);