public class AffineCoordinateTransform extends Object implements CoordinateTransform
CoordinateTransform
.Constructor and Description |
---|
AffineCoordinateTransform(AffineTransform affine)
Creates a new instance to wrap the given
AffineTransform . |
Modifier and Type | Method and Description |
---|---|
Point |
worldToImage(double x,
double y,
Point p)
Converts from world to image coordinates.
|
public AffineCoordinateTransform(AffineTransform affine)
AffineTransform
. If
tr
is null
an identity transform will be used. The
input transform is copied.affine
- the transformpublic Point worldToImage(double x, double y, Point p)
p
is not null
it will be set to the image coordinates, otherwise a new destination object
will be created. In both cases, the resulting point is returned.worldToImage
in interface CoordinateTransform
x
- world X ordinatey
- world Y ordinatep
- object to receive image coordinates (may be null
)Copyright © 2006–2018 GeoSolutions. All rights reserved.