Module org.dyn4j

Interface Translatable

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void translate​(double x, double y)
      Translates the object the given amounts in the respective directions.
      void translate​(Vector2 vector)
      Translates the object along the given vector.
    • Method Detail

      • translate

        void translate​(double x,
                       double y)
        Translates the object the given amounts in the respective directions.
        Parameters:
        x - the translation in the x direction
        y - the translation in the y direction
      • translate

        void translate​(Vector2 vector)
        Translates the object along the given vector.
        Parameters:
        vector - the translation along a vector