Package org.esa.snap.core.transform
Class AffineTransform2D
java.lang.Object
java.awt.geom.AffineTransform
org.geotools.referencing.operation.matrix.XAffineTransform
org.geotools.referencing.operation.transform.AffineTransform2D
org.esa.snap.core.transform.AffineTransform2D
- All Implemented Interfaces:
Serializable,Cloneable,MathTransform2D,org.geotools.referencing.operation.LinearTransform,org.geotools.referencing.util.Formattable,org.opengis.referencing.operation.MathTransform,org.opengis.referencing.operation.MathTransform2D,org.opengis.util.Cloneable
public class AffineTransform2D
extends org.geotools.referencing.operation.transform.AffineTransform2D
implements MathTransform2D
A wrapper class for an affine transform where a
MathTransform2D is required.- See Also:
-
Field Summary
Fields inherited from class java.awt.geom.AffineTransform
TYPE_FLIP, TYPE_GENERAL_ROTATION, TYPE_GENERAL_SCALE, TYPE_GENERAL_TRANSFORM, TYPE_IDENTITY, TYPE_MASK_ROTATION, TYPE_MASK_SCALE, TYPE_QUADRANT_ROTATION, TYPE_TRANSLATION, TYPE_UNIFORM_SCALEFields inherited from interface org.esa.snap.core.transform.MathTransform2D
IDENTITY, NULL -
Constructor Summary
ConstructorsConstructorDescriptionAffineTransform2D(double m00, double m10, double m01, double m11, double m02, double m12) Constructs a newAffineTransform2Dfrom 6 values representing the 6 specifiable entries of the 3×3 transformation matrix.AffineTransform2D(AffineTransform transform) Constructs a new affine transform with the same coefficient than the specified transform. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.inverse()Creates the inverse transform of this object.Methods inherited from class org.geotools.referencing.operation.transform.AffineTransform2D
checkPermission, clone, createTransformedShape, derivative, derivative, formatWKT, getMatrix, getParameterValues, getSourceDimensions, getTargetDimensions, toString, toWKT, transformMethods inherited from class org.geotools.referencing.operation.matrix.XAffineTransform
concatenate, getFlip, getRotation, getScale, getScaleInstance, getScaleX0, getScaleY0, getSwapXY, inverseDeltaTransform, inverseTransform, isIdentity, isIdentity, preConcatenate, rotate, rotate, round, scale, setToIdentity, setToRotation, setToRotation, setToScale, setToShear, setToTranslation, setTransform, setTransform, shear, transform, transform, translateMethods inherited from class java.awt.geom.AffineTransform
createInverse, deltaTransform, deltaTransform, getDeterminant, getMatrix, getQuadrantRotateInstance, getQuadrantRotateInstance, getRotateInstance, getRotateInstance, getRotateInstance, getRotateInstance, getScaleInstance, getScaleX, getScaleY, getShearInstance, getShearX, getShearY, getTranslateInstance, getTranslateX, getTranslateY, getType, hashCode, inverseTransform, inverseTransform, invert, isIdentity, quadrantRotate, quadrantRotate, rotate, rotate, setToQuadrantRotation, setToQuadrantRotation, setToRotation, setToRotation, transform, transform, transform, transform, transform, transformMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.geotools.referencing.operation.LinearTransform
isIdentityMethods inherited from interface org.opengis.referencing.operation.MathTransform
derivative, isIdentity, toWKT, transform, transform, transform, transform, transformMethods inherited from interface org.esa.snap.core.transform.MathTransform2D
getSourceDimensions, getTargetDimensions, hashCode, transformMethods inherited from interface org.opengis.referencing.operation.MathTransform2D
createTransformedShape, derivative, transform
-
Constructor Details
-
AffineTransform2D
Constructs a new affine transform with the same coefficient than the specified transform. -
AffineTransform2D
public AffineTransform2D(double m00, double m10, double m01, double m11, double m02, double m12) Constructs a newAffineTransform2Dfrom 6 values representing the 6 specifiable entries of the 3×3 transformation matrix. Those values are given unchanged to thesuper class constructor.- Since:
- 2.5
-
-
Method Details
-
inverse
public MathTransform2D inverse() throws org.opengis.referencing.operation.NoninvertibleTransformExceptionCreates the inverse transform of this object.- Specified by:
inversein interfaceorg.opengis.referencing.operation.MathTransform- Specified by:
inversein interfaceMathTransform2D- Specified by:
inversein interfaceorg.opengis.referencing.operation.MathTransform2D- Overrides:
inversein classorg.geotools.referencing.operation.transform.AffineTransform2D- Returns:
- The inverse transform.
- Throws:
org.opengis.referencing.operation.NoninvertibleTransformException- if this transform can't be inverted.
-
equals
Description copied from interface:MathTransform2DIndicates whether some other object is "equal to" this one.The
equalsmethod implements an equivalence relation on non-null object references:- It is reflexive: for any non-null reference value
x,x.equals(x)should returntrue. - It is symmetric: for any non-null reference values
xandy,x.equals(y)should returntrueif and only ify.equals(x)returnstrue. - It is transitive: for any non-null reference values
x,y, andz, ifx.equals(y)returnstrueandy.equals(z)returnstrue, thenx.equals(z)should returntrue. - It is consistent: for any non-null reference values
xandy, multiple invocations ofx.equals(y)consistently returntrueor consistently returnfalse, provided no information used inequalscomparisons on the objects is modified. - For any non-null reference value
x,x.equals(null)should returnfalse.
The
equalsmethod for classObjectimplements the most discriminating possible equivalence relation on objects; that is, for any non-null reference valuesxandy, this method returnstrueif and only ifxandyrefer to the same object (x == yhas the valuetrue).Note that it is generally necessary to override the
hashCodemethod whenever this method is overridden, so as to maintain the general contract for thehashCodemethod, which states that equal objects must have equal hash codes.- Specified by:
equalsin interfaceMathTransform2D- Overrides:
equalsin classorg.geotools.referencing.operation.transform.AffineTransform2D- Parameters:
object- the reference object with which to compare.- Returns:
trueif this object is the same as the obj argument;falseotherwise.- See Also:
- It is reflexive: for any non-null reference value
-