Class MovementCalculator



  • public class MovementCalculator
    extends Object
    • Constructor Detail

      • MovementCalculator

        public MovementCalculator(float x,
                                  float y)
        Create a new MovementCalculator initialized at the specified starting position.
        Parameters:
        x - the initial x position.
        y - the initial y position.
    • Method Detail

      • reset

        public void reset(float x,
                          float y)
      • update

        public Vector2 update(float x,
                              float y)