public interface ICoordinateTransform
Modifier and Type | Method and Description |
---|---|
boolean |
forward(double xSource,
double ySource,
CoordinatePair transformedCoordinates)
Transforms a point in a source coordinate system to the equivalent output.
|
boolean |
inverse(double xTransformed,
double yTransformed,
CoordinatePair sourceCoordinates)
Transforms a point in an output coordinate system to the equivalent point
in the source coordinate system.
|
boolean forward(double xSource, double ySource, CoordinatePair transformedCoordinates)
All transforms are assumed to be fully invertible (bijective) over their domain. If a forward transform is defined for a set of input coordinates, then the inverse transform must be defined for the resulting output coordinates.
xSource
- the x value in the source coordinate systemySource
- the y value in the source coordinate systemtransformedCoordinates
- a simple container to receive the results of
the computation, the transformed coordinates for (xSource, ySource).boolean inverse(double xTransformed, double yTransformed, CoordinatePair sourceCoordinates)
All transforms are assumed to be fully invertible (bijective) over their domain. If a forward transform is defined for a set of input coordinates, then the inverse transform must be defined for the resulting output coordinates.
xTransformed
- x value in the transformed coordinate systemyTransformed
- y value in the transformed coordiante systemsourceCoordinates
- a simple container to receive the results of the
computation, the transformed coordinates for (xSource, ySource).Copyright © 2021. All rights reserved.