toAngle

Returns this Number as an Angle measurement in the specified AngleUnit.

The Angle.value will be stored in the original Angle.unit without conversion. To obtain the value in a different unit, use Angle.convert, Angle.toFloat, or Angle.toDouble, providing the target AngleUnit for conversion.

Return

An Angle object representing the value in the specified unit.

Parameters

unit

The unit of this value.