convert

fun convert(targetUnit: AngleUnit): Angle

Converts the angle to the specified unit.

Return

Angle object converted to the specified unit. Returns this object if units match.

Parameters

targetUnit

The unit to which the angle should be converted.