Package org.arakhne.afc.agentmotion
Interface AligningMotionAlgorithm
-
- All Known Implementing Classes:
AligningKinematicAlgorithm,AligningSteeringAlgorithm
public interface AligningMotionAlgorithmAgent is changing its oriented for being align to the target vector.- 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 doublecalculate(Vector2D<?,?> orientation, double angularSpeed, double maxAngular, Vector2D<?,?> target)Calculate the rotation for being aligned to the target vector.AligningMotionAlgorithmclone()Clone this algorithm.
-
-
-
Method Detail
-
clone
@Pure AligningMotionAlgorithm clone()
Clone this algorithm.- Returns:
- the clone.
-
calculate
@Pure double calculate(Vector2D<?,?> orientation, double angularSpeed, double maxAngular, Vector2D<?,?> target)
Calculate the rotation for being aligned to the target vector.- Parameters:
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 vector to match.- Returns:
- the agent motion.
-
-