ianmackenzie / elm-units-prefixed / Units.AngularSpeed

An AngularSpeed represents a rotation rate in radians per second, degrees per second, turns (revolutions) per second or turns (revolutions) per minute. It is stored as a number of radians per second.

Note that since RadiansPerSecond is defined as Rate Radians Seconds (angle per unit time), you can construct an AngularSpeed value using Quantity.per:

angularSpeed =
    angle |> Quantity.per duration

You can also do rate-related calculations with AngularSpeed values to compute Angle or Duration:

angle =
    angularSpeed |> Quantity.for duration

alsoAngle =
    duration |> Quantity.at angularSpeed

duration =
    angle |> Quantity.at_ angularSpeed


type alias AngularSpeed =
AngularSpeed


type alias RadiansPerSecond =
AngularSpeed.RadiansPerSecond

Conversions

radiansPerSecond : Basics.Float -> AngularSpeed

Construct an angular speed from a number of radians per second.

inRadiansPerSecond : AngularSpeed -> Basics.Float

Convert an angular speed to a number of radians per second.

degreesPerSecond : Basics.Float -> AngularSpeed

Construct an angular speed from a number of degrees per second.

inDegreesPerSecond : AngularSpeed -> Basics.Float

Convert an angular speed to a number of degrees per second.

turnsPerSecond : Basics.Float -> AngularSpeed

Construct an angular speed from a number of turns per second.

inTurnsPerSecond : AngularSpeed -> Basics.Float

Convert an angular speed to a number of turns per second.

turnsPerMinute : Basics.Float -> AngularSpeed

Construct an angular speed from a number of turns per minute.

inTurnsPerMinute : AngularSpeed -> Basics.Float

Convert an angular speed to a number of turns per minute.

Aliases for turns as revolutions

The Elm core Basics module uses turns in its Angle Conversions. To be consistent, this module also uses turns, however since 'revolutions per minute' (RPM) is in common usage, several aliases are provided.

revolutionsPerSecond : Basics.Float -> AngularSpeed

Alias for turnsPerSecond.

inRevolutionsPerSecond : AngularSpeed -> Basics.Float

Alias for inTurnsPerSecond.

revolutionsPerMinute : Basics.Float -> AngularSpeed

Alias for turnsPerMinute.

inRevolutionsPerMinute : AngularSpeed -> Basics.Float

Alias for inTurnsPerMinute.