TimeVaryingValue

sealed

Represents one of the type of values that changes over time.

class Object
trait Matchable
class Any

Value members

Abstract methods

Update the time varying value based on a time delta

Update the time varying value based on a time delta

Value Params
timeDelta

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

Returns

TimeVaryingValue

Concrete methods

def toDouble: Double

Value as an Double

Value as an Double

Returns

Double

def toFloat: Float

Value as an Float

Value as an Float

Returns

Float

def toInt: Int

Value as an Int

Value as an Int

Returns

Int

def toLong: Long

Value as an Long

Value as an Long

Returns

Long

Abstract fields

val unitsPerSecond: Double

The rate of change

The rate of change

Returns

Double

val value: Double

The current value

The current value

Returns

Double