GloballyConstantSpeed

class GloballyConstantSpeed<T, P : Position<P>>(reaction: Reaction<*>, maxSpeed: Double) : SpeedSelectionStrategy<T, P>

Similar to ConstantSpeed but takes in consideration the time distribution's rate instead of the reaction's rate.

Constructors

Link copied to clipboard
constructor(reaction: Reaction<*>, maxSpeed: Double)

Functions

Link copied to clipboard
open override fun cloneIfNeeded(destination: Node<T>, reaction: Reaction<T>): GloballyConstantSpeed<T, P>
Link copied to clipboard
open override fun getNodeMovementLength(target: P): Double