StraightLineTraceDependantSpeed

This AbstractTraceDependantSpeed uses the distance between coordinates for estimating the distance.

Parameters

<T>

Concentration type

Constructors

Link copied to clipboard
constructor(environment: MapEnvironment<T, O, S>, node: Node<T>, reaction: NodeReaction<T>)
Builds a new strategy estimating distances in straight line.

Properties

Link copied to clipboard
protected open var trace: GPSTrace

Functions

Link copied to clipboard
Returns a clone for destination and reaction when the strategy is stateful.
Link copied to clipboard
Computes the movement length toward target.
abstract fun getNodeMovementLength(target: P): Double

Computes the movement length toward target.