DecreaseWrapAt

Companion
class
trait Product
trait Mirror
class Object
trait Matchable
class Any

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from
Mirror

Value members

Concrete methods

def apply(unitsPerSecond: Double, limit: Double): DecreaseWrapAt

Constructor for a value that decreases over time and wraps back to zero when it hits the limit. This constructor assumes the start value is zero.

Constructor for a value that decreases over time and wraps back to zero when it hits the limit. This constructor assumes the start value is zero.

Value Params
limit

The lower limit

unitsPerSecond

The rate of change

value

The current value

Returns

DecreaseWrapAt