Package-level declarations

Types

Link copied to clipboard
class DoublePropertyFollower(clock: Clock, property: KProperty0<Double>, maxAccel: Double, maxAccelProperty: KProperty0<Double>?, maxSpeed: Double, maxSpeedProperty: KProperty0<Double>?, dampDist: Double, dampDistProperty: KProperty0<Double>?)
Link copied to clipboard
class DoublePropertySmoother(clock: Clock, property: KProperty0<Double>, factor: Double = 0.99, factorProperty: KProperty0<Double>?)
Link copied to clipboard
class PropertyFollower<T : LinearType<T>, EuclideanVector<T>>(clock: Clock, property: KProperty0<T>, maxAccel: Double, maxAccelProperty: KProperty0<Double>?, maxSpeed: Double, maxSpeedProperty: KProperty0<Double>?, dampDist: Double, dampDistProperty: KProperty0<Double>?)
Link copied to clipboard
class PropertySmoother<T : LinearType<T>>(clock: Clock, property: KProperty0<T>, factor: Double = 0.99, factorProperty: KProperty0<Double>?)

Functions

Link copied to clipboard
fun <T : LinearType<T>, EuclideanVector<T>> Clock.following(property: KProperty0<T>, maxAccel: Double = 0.1, maxAccelProperty: KProperty0<Double>? = null, maxSpeed: Double = 10.0, maxSpeedProperty: KProperty0<Double>? = null, dampDist: Double = 400.0, dampDistProperty: KProperty0<Double>? = null): PropertyFollower<T>
fun Clock.following(property: KProperty0<Double>, maxAccel: Double = 0.1, maxAccelProperty: KProperty0<Double>? = null, maxSpeed: Double = 10.0, maxSpeedProperty: KProperty0<Double>? = null, dampDist: Double = 400.0, dampDistProperty: KProperty0<Double>? = null): DoublePropertyFollower

Create a property follower delegate

Link copied to clipboard
fun <T : LinearType<T>> Clock.smoothing(property: KProperty0<T>, factor: Double = 0.99): PropertySmoother<T>
fun <T : LinearType<T>> Clock.smoothing(property: KProperty0<T>, factor: KProperty0<Double>): PropertySmoother<T>
fun Clock.smoothing(property: KProperty0<Double>, factor: Double = 0.99): DoublePropertySmoother

Create a property smoother delegate