Package org.arakhne.afc.agentmotion
Interface FleeingMotionAlgorithm
-
- All Known Implementing Classes:
FleeingAlgorithm
public interface FleeingMotionAlgorithm
Agent is changing its position for fleeing the target point.- Since:
- 14.0
- Version:
- 17.0 2020-01-04 14:41:51
- Author:
- Stéphane GALLAND
- Maven Group Id:
- org.arakhne.afc.advanced
- Maven Artifact Id:
- agentmotion
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Vector2D<?,?>
calculate(Point2D<?,?> position, double linearSpeed, double maxLinear, Point2D<?,?> target)
Calculate the linear motion for fleeing the target position.FleeingMotionAlgorithm
clone()
Clone this algorithm.
-
-
-
Method Detail
-
clone
@Pure FleeingMotionAlgorithm clone()
Clone this algorithm.- Returns:
- the clone.
-
calculate
@Pure Vector2D<?,?> calculate(Point2D<?,?> position, double linearSpeed, double maxLinear, Point2D<?,?> target)
Calculate the linear motion for fleeing the target position.- Parameters:
position
- is the current position of the entity.linearSpeed
- is the current linear speed of the entity.maxLinear
- is the maximal linear speed or acceleration of the entity.target
- is the point to flee.- Returns:
- the agent motion.
-
-