T
- the implementing typepublic interface ITranslatable<T extends IGeometry>
The ITranslatable
interface collects all translation short-cut
methods.
Translation can be applied directly on an object via the
translate(Point)
and translate(double, double)
methods.
They return the scaled, calling object for convenience.
On the other hand, the getTranslated(Point)
and
getTranslated(double, double)
methods create a translated copy of
the original object.
Modifier and Type | Method and Description |
---|---|
T |
getTranslated(double dx,
double dy)
Translates a copy of this object by the given values in x and y
direction.
|
T |
getTranslated(Point d)
Translates a copy of this object by the given
Point . |
T |
translate(double dx,
double dy)
Translates the object by the given values in x and y direction.
|
T |
translate(Point d)
Translates the object by the given
Point . |
T getTranslated(double dx, double dy)
dx
- x-translationdy
- y-translationT getTranslated(Point d)
Point
.d
- translation Point
T translate(double dx, double dy)
dx
- x-translationdy
- y-translationthis
for convenienceCopyright (c) 2014 itemis AG, and others. All rights reserved.