Package-level declarations

Types

Link copied to clipboard
sealed interface Behavior<out A>

A behavior is a value of type A whose value varies over time.

Functions

Link copied to clipboard
inline fun <T> Behavior<T>.integrate(initial: T? = null): Behavior<T>

Integrate the behavior with respect to the current Timeline's clock time.

fun <T> Behavior<T>.integrate(vectorSpace: VectorSpace<T>, initial: T? = null): Behavior<T>

Integrate the behavior with respect to the current Timeline's clock time, supplying an explicit VectorSpace instance.

Link copied to clipboard
inline fun <T> Behavior<T>.integrateWith(initial: T, noinline accum: SampleScope.(T, T) -> T): Behavior<T>
fun <T> Behavior<T>.integrateWith(vectorSpace: VectorSpace<T>, initial: T, accum: SampleScope.(T, T) -> T): Behavior<T>
Link copied to clipboard
operator fun Behavior<Boolean>.not(): Behavior<Boolean>

Negate the value of the behavior at all times.

Link copied to clipboard
@JvmName(name = "plusFloat2")
operator fun Behavior<Float2>.plus(other: Behavior<Float2>): Behavior<Float2>
@JvmName(name = "plusFloat3")
operator fun Behavior<Float3>.plus(other: Behavior<Float3>): Behavior<Float3>
@JvmName(name = "plusDouble")
operator fun Behavior<Double>.plus(other: Behavior<Double>): Behavior<Double>
@JvmName(name = "plusFloat")
operator fun Behavior<Float>.plus(other: Behavior<Float>): Behavior<Float>
@JvmName(name = "plusInt")
operator fun Behavior<Int>.plus(other: Behavior<Int>): Behavior<Int>
Link copied to clipboard

Constructs a behavior whose value is equal to the state's current behavior's value at all times.