Convert degrees, gradians, radians, and turns to degrees. If no unit is given in the string, degrees is used.
toDegrees('180') // return 180toDegrees('180deg') // return 180toDegrees('0.75turn') // return 270toDegrees('-0.25turn') // return 270
A string comprised of an angle and a unit of deg|grad|rad|turn; if no unit is given, deg is used.
deg|grad|rad|turn
deg
Generated using TypeDoc
Convert degrees, gradians, radians, and turns to degrees. If no unit is given in the string, degrees is used.
Example