Interface AligningMotionAlgorithm

  • All Known Implementing Classes:
    AligningKinematicAlgorithm, AligningSteeringAlgorithm

    public interface AligningMotionAlgorithm
    Agent 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 Detail

      • 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.