convertTo method

double convertTo(
  1. {required AngularUnit toUnit,
  2. required double angle}
)

Converts a value in this UOM into another UOM.

Parameters:

  • toUnit — The UOM to convert to.
  • angle — The value to convert.

Return Value: The value in the target UOM or NAN if the conversion fails.

Implementation

double convertTo({required AngularUnit toUnit, required double angle}) {
  return _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_AngularUnit_convertTo(
        _handle, toUnit._handle, angle, errorHandler);
  });
}