org.jaitools.jiffle.runtime
Interface CoordinateTransform

All Known Implementing Classes:
AffineCoordinateTransform, IdentityCoordinateTransform

public interface CoordinateTransform

A transform used by Jiffle to convert from world (processing area) coordinates to image (pixel) coordinates.

Since:
0.1
Version:
$Id: CoordinateTransform.java 1653 2011-06-16 10:23:02Z michael.bedward $
Author:
Michael Bedward

Method Summary
 java.awt.Point worldToImage(double x, double y, java.awt.Point p)
          Converts from world to image coordinates.
 

Method Detail

worldToImage

java.awt.Point worldToImage(double x,
                            double y,
                            java.awt.Point p)
Converts from world to image coordinates. If 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.

Parameters:
x - world X ordinate
y - world Y ordinate
p - object to receive image coordinates (may be null)
Returns:
image coordinates


Copyright © 2011. All Rights Reserved.