sweepAngleToActualValue static method
Convert the sweepAngle
to ActualValue.
Implementation
static double sweepAngleToActualValue(
{required double sweepAngle,
required double maxValue,
required double maxDegrees,
required double minValue}) {
// final ratio = sweepAngle / maxDegrees;
// return ratio * maxValue;
return radiansToDegrees(sweepAngle) * ((maxValue - minValue) / maxDegrees) +
minValue;
}