ianmackenzie/elm-units-prefixed/2.0.0

NOTE: the latest version is 2.8.0

Units.AngularSpeed

An AngularSpeed represents an acceleration in radians per second, degrees per second, turns (revolutions) per second and 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 =
RadiansPerSecond
radiansPerSecond : Float -> AngularSpeed

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

inRadiansPerSecond : AngularSpeed -> Float

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

degreesPerSecond : Float -> AngularSpeed

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

inDegreesPerSecond : AngularSpeed -> Float

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

turnsPerSecond : Float -> AngularSpeed

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

inTurnsPerSecond : AngularSpeed -> Float

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

turnsPerMinute : Float -> AngularSpeed

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

inTurnsPerMinute : AngularSpeed -> 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 : Float -> AngularSpeed

Alias for turnsPerSecond.

inRevolutionsPerSecond : AngularSpeed -> Float

Alias for inTurnsPerSecond.

revolutionsPerMinute : Float -> AngularSpeed

Alias for turnsPerMinute.

inRevolutionsPerMinute : AngularSpeed -> Float

Alias for inTurnsPerMinute.