Converts the object into a primitive
The string to use for the default toString
function
Converts the primitive into it's JSON representation
the object to serialize with JSON.stringify
Converts the degrees into radians
the converted radians value
Retrieves the actual value of the number
Represents an angle
const degrees = new Degrees(180); degrees.toString(); // -> '180°' `${degrees}`; // -> '180' +degrees; // -> 180 degrees.value; // -> 180
const previous = new Degrees(180); const degrees = new Degrees(previous); degrees.toString(); // -> '180°'
const degrees = new Degrees(180); const radians = radians.toRadians(); radians.toString(); // -> '2π rad'