IncreaseWrapAt

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): IncreaseWrapAt

Constructor for a value that increases 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 increases over time and wraps back to zero when it hits the limit. This constructor assumes the start value is zero.

Value Params
limit

The upper limit

unitsPerSecond

The rate of change

Returns

IncreaseWrapAt