toRadians method

double toRadians({
  1. required double angle,
})

Converts a value in this UOM to radians.

Parameters:

  • angle — The value to convert.

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

Implementation

double toRadians({
  required double angle,
}) {
  return _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_AngularUnit_toRadians(
      _handle,
      angle,
      errorHandler,
    );
  });
}