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 Detail

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