Sum
class Sum<T>(environment: Physics2DEnvironment<T>, node: PhysicalPedestrian2D<T>, nonPhysicalStrategy: SteeringStrategy<T, Euclidean2DPosition>) : PhysicalSteeringStrategy<T, Euclidean2DPosition, Euclidean2DTransformation, Euclidean2DShapeFactory>
Content copied to clipboard
A PhysicalSteeringStrategy performing a simple sum of the overall intentional force and the physical ones.
Constructors
Link copied to clipboard
fun <T> Sum(environment: Physics2DEnvironment<T>, node: PhysicalPedestrian2D<T>, nonPhysicalStrategy: SteeringStrategy<T, Euclidean2DPosition>)
Content copied to clipboard
Functions
Link copied to clipboard
open override fun computeNextPosition(overallIntentionalForce: Euclidean2DPosition): Euclidean2DPosition
Content copied to clipboard
Computes the next relative position reached by the node, given the overall intentional force.
open override fun computeNextPosition(actions: List<SteeringAction<T, Euclidean2DPosition>>): Euclidean2DPosition
Content copied to clipboard
Link copied to clipboard
open override fun computeTarget(actions: List<SteeringAction<T, Euclidean2DPosition>>): Euclidean2DPosition
Content copied to clipboard
Delegated to nonPhysicalStrategy.
Properties
Link copied to clipboard
Link copied to clipboard
open override val nonPhysicalStrategy: SteeringStrategy<T, Euclidean2DPosition>
Content copied to clipboard