public class OffsetTransformation extends UnaryTransformation
Constructor and Description |
---|
OffsetTransformation(double dx,
double dy)
Creates a new instance of the transformation.
|
OffsetTransformation(Point offset)
Creates a new instance of the transformation.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clones the current transformation.
|
double |
getDx()
Returns the translation to apply to the longitude.
|
double |
getDy()
Returns the translation to apply to the latitude.
|
Geometry |
transform(Point point)
Translate the specified coordinate with the specified translation values specified
at the transformation creation.
|
public OffsetTransformation(double dx, double dy)
dx
- the translation to apply to the longitude.dy
- the translation to apply to the latitude.public OffsetTransformation(Point offset)
offset
- the translation to apply to the longitude and the latitude.public double getDx()
public double getDy()
public Geometry transform(Point point)
point
- the coordinate to translate.public java.lang.Object clone()
clone
in interface Transformation
clone
in class UnaryTransformation