convertFrom method

double convertFrom({
  1. required AngularUnit fromUnit,
  2. required double angle,
})

Converts a value in another UOM into this UOM.

Parameters:

  • fromUnit — The UOM to convert from.
  • angle — The value to convert.

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

Implementation

double convertFrom({
  required AngularUnit fromUnit,
  required double angle,
}) {
  return _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_AngularUnit_convertFrom(
      _handle,
      fromUnit._handle,
      angle,
      errorHandler,
    );
  });
}