StraightLine

Routing strategy that computes a straight route from the current position to the final one. In this implementation obstacles are ignored.

Parameters

position type

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun cloneIfNeeded(destination: Node<T>, reaction: NodeReaction<T>): RoutingStrategy<T, P>

Returns a copy for destination and reaction when this strategy is stateful, or this object otherwise.

Link copied to clipboard
open override fun computeRoute(currentPos: P, finalPos: P): Route<P>

Computes a route from currentPos to finalPos.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String