Interface ITranslatable<T extends IGeometry>

    • Method Detail

      • getTranslated

        T getTranslated​(double dx,
                        double dy)
        Translates a copy of this object by the given values in x and y direction.
        Parameters:
        dx - x-translation
        dy - y-translation
        Returns:
        a new, translated object
      • getTranslated

        T getTranslated​(Point d)
        Translates a copy of this object by the given Point.
        Parameters:
        d - translation Point
        Returns:
        a new, translated object
      • translate

        T translate​(double dx,
                    double dy)
        Translates the object by the given values in x and y direction.
        Parameters:
        dx - x-translation
        dy - y-translation
        Returns:
        this for convenience
      • translate

        T translate​(Point d)
        Translates the object by the given Point.
        Parameters:
        d - translation Point
        Returns:
        this for convenience