Filtered
open class Filtered<T, P : Position<P>, Vector<P>>(steerStrategy: SteeringStrategy<T, P>, filter: List<SteeringAction<T, P>>.() -> List<SteeringAction<T, P>>) : SteeringStrategy<T, P>
Content copied to clipboard
SteeringStrategy decorator applying a filter to the list of steering actions (see computeNextPosition).
Parameters
steer Strategy
computeNextPosition is delegated to this strategy.
Content copied to clipboard
filter
the filter to apply on the list of steering actions.
Content copied to clipboard
Constructors
Functions
Link copied to clipboard
open override fun computeNextPosition(actions: List<SteeringAction<T, P>>): P
Content copied to clipboard
Link copied to clipboard
Computes the target to reach starting from the steering actions the pedestrian obey to, in absolute coordinates.