Module org.dyn4j

Interface Rotatable

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void rotate​(double theta)
      Rotates the object about the origin.
      void rotate​(double theta, double x, double y)
      Rotates the object about the given coordinates.
      void rotate​(double theta, Vector2 point)
      Rotates the object about the given point.
      void rotate​(Rotation rotation)
      Rotates the object about the origin.
      void rotate​(Rotation rotation, double x, double y)
      Rotates the object about the given point.
      void rotate​(Rotation rotation, Vector2 point)
      Rotates the object about the given point.
    • Method Detail

      • rotate

        void rotate​(double theta)
        Rotates the object about the origin.
        Parameters:
        theta - the angle of rotation in radians
      • rotate

        void rotate​(Rotation rotation)
        Rotates the object about the origin.
        Parameters:
        rotation - the Rotation representing the rotation amount
        Since:
        3.4.0
      • rotate

        void rotate​(double theta,
                    Vector2 point)
        Rotates the object about the given point.
        Parameters:
        theta - the angle of rotation in radians
        point - the point to rotate about
      • rotate

        void rotate​(Rotation rotation,
                    Vector2 point)
        Rotates the object about the given point.
        Parameters:
        rotation - the Rotation representing the rotation amount
        point - the point to rotate about
        Since:
        3.4.0
      • rotate

        void rotate​(double theta,
                    double x,
                    double y)
        Rotates the object about the given coordinates.
        Parameters:
        theta - the angle of rotation in radians
        x - the x coordinate to rotate about
        y - the y coordinate to rotate about
      • rotate

        void rotate​(Rotation rotation,
                    double x,
                    double y)
        Rotates the object about the given point.
        Parameters:
        rotation - the Rotation representing the rotation amount
        x - the x coordinate to rotate about
        y - the y coordinate to rotate about
        Since:
        3.4.0