IncreaseWrapAt

indigoextras.datatypes.IncreaseWrapAt
See theIncreaseWrapAt companion object
final case class IncreaseWrapAt(value: Double, unitsPerSecond: Double, limit: Double) extends TimeVaryingValue

A value that increases over time and wraps back to zero when it hits the limit

Value parameters

limit

The upper limit

unitsPerSecond

The rate of change

value

The current/starting value

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def update(timeDelta: Seconds): IncreaseWrapAt

Update the time varying value based on a time delta

Update the time varying value based on a time delta

Value parameters

timeDelta

the time delta typically supplied from GameTime(..).delta

Attributes

Returns

TimeVaryingValue

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def toDouble: Double

Value as an Double

Value as an Double

Attributes

Returns

Double

Inherited from:
TimeVaryingValue
def toFloat: Float

Value as an Float

Value as an Float

Attributes

Returns

Float

Inherited from:
TimeVaryingValue
def toInt: Int

Value as an Int

Value as an Int

Attributes

Returns

Int

Inherited from:
TimeVaryingValue
def toLong: Long

Value as an Long

Value as an Long

Attributes

Returns

Long

Inherited from:
TimeVaryingValue