toFloat

fun toFloat(targetUnit: AngleUnit): Float

Returns the value of this angle as a Float number of the specified targetUnit.

Return

Value as a Float converted to the specified unit.

Parameters

targetUnit

The unit to which the angle should be converted.