Package org.arakhne.afc.agentmotion
Interface FacingMotionAlgorithm
-
- All Known Implementing Classes:
FacingAlgorithm
public interface FacingMotionAlgorithm
Agent is changing its orientation for facing 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 double
calculate(Point2D<?,?> position, Vector2D<?,?> orientation, double angularSpeed, double maxAngular, Point2D<?,?> target)
Calculate the rotation for facing the target point.FacingMotionAlgorithm
clone()
Clone this algorithm.
-
-
-
Method Detail
-
clone
@Pure FacingMotionAlgorithm clone()
Clone this algorithm.- Returns:
- the clone.
-
calculate
@Pure double calculate(Point2D<?,?> position, Vector2D<?,?> orientation, double angularSpeed, double maxAngular, Point2D<?,?> target)
Calculate the rotation for facing the target point.- Parameters:
position
- is the current position of the entity.orientation
- is the current orientation of the entity.angularSpeed
- is the current angular speed of the entity.maxAngular
- is the maximal angular speed or acceleration of the entity.target
- is the point to face to.- Returns:
- the agent motion.
-
-