UnitConversionExtension extension
An extension on double with conversion methods for angle, angular velocity, area, length, speed and time units.
- on
Methods
-
convertAngle(
{AngleUnit from = AngleUnit.radian, AngleUnit to = AngleUnit.radian}) → double -
Available on num, provided by the UnitConversionExtension extension
Converts this double value from one angle unit to another. -
convertAngularVelocity(
{AngularVelocityUnit from = AngularVelocityUnit.radianPerSecond, AngularVelocityUnit to = AngularVelocityUnit.radianPerSecond}) → double -
Available on num, provided by the UnitConversionExtension extension
Converts this double value from one angular velocity unit to another. -
convertArea(
{AreaUnit from = AreaUnit.squareMeter, AreaUnit to = AreaUnit.squareMeter}) → double -
Available on num, provided by the UnitConversionExtension extension
Converts this double value from one area unit to another. -
convertLength(
{LengthUnit from = LengthUnit.meter, LengthUnit to = LengthUnit.meter}) → double -
Available on num, provided by the UnitConversionExtension extension
Converts this double value from one length unit to another. -
convertSpeed(
{SpeedUnit from = SpeedUnit.meterPerSecond, SpeedUnit to = SpeedUnit.meterPerSecond}) → double -
Available on num, provided by the UnitConversionExtension extension
Converts this double value from one speed unit to another. -
convertTime(
{TimeUnit from = TimeUnit.second, TimeUnit to = TimeUnit.second}) → double -
Available on num, provided by the UnitConversionExtension extension
Converts this double value from one time unit to another.