TimeVaryingValue

indigoextras.datatypes.TimeVaryingValue
sealed trait TimeVaryingValue

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

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class DecreaseTo
class Decreasing
class IncreaseTo
class Increasing
Show all

Members list

Value members

Abstract methods

def update(timeDelta: Seconds): TimeVaryingValue

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

Concrete methods

def toDouble: Double

Value as an Double

Value as an Double

Attributes

Returns

Double

def toFloat: Float

Value as an Float

Value as an Float

Attributes

Returns

Float

def toInt: Int

Value as an Int

Value as an Int

Attributes

Returns

Int

def toLong: Long

Value as an Long

Value as an Long

Attributes

Returns

Long

Abstract fields

val unitsPerSecond: Double

The rate of change

The rate of change

Attributes

Returns

Double

val value: Double

The current value

The current value

Attributes

Returns

Double