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 aMathTransform2D
is required.- See Also:
- Serialized Form
-
-
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_SCALE
-
Fields inherited from interface org.esa.snap.core.transform.MathTransform2D
IDENTITY, NULL
-
-
Constructor Summary
Constructors Constructor Description AffineTransform2D(double m00, double m10, double m01, double m11, double m02, double m12)
Constructs a newAffineTransform2D
from 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
Indicates whether some other object is "equal to" this one.MathTransform2D
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, transform
-
Methods 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, translate
-
Methods 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, transform
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.opengis.referencing.operation.MathTransform
derivative, isIdentity, toWKT, transform, transform, transform, transform, transform
-
Methods inherited from interface org.esa.snap.core.transform.MathTransform2D
getSourceDimensions, getTargetDimensions, hashCode, transform
-
-
-
-
Constructor Detail
-
AffineTransform2D
public AffineTransform2D(AffineTransform transform)
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 newAffineTransform2D
from 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 Detail
-
inverse
public MathTransform2D inverse() throws org.opengis.referencing.operation.NoninvertibleTransformException
Creates the inverse transform of this object.- Specified by:
inverse
in interfaceorg.opengis.referencing.operation.MathTransform
- Specified by:
inverse
in interfaceMathTransform2D
- Specified by:
inverse
in interfaceorg.opengis.referencing.operation.MathTransform2D
- Overrides:
inverse
in classorg.geotools.referencing.operation.transform.AffineTransform2D
- Returns:
- The inverse transform.
- Throws:
org.opengis.referencing.operation.NoninvertibleTransformException
- if this transform can't be inverted.
-
equals
public boolean equals(Object object)
Description copied from interface:MathTransform2D
Indicates whether some other object is "equal to" this one.The
equals
method 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
x
andy
,x.equals(y)
should returntrue
if and only ify.equals(x)
returnstrue
. - It is transitive: for any non-null reference values
x
,y
, andz
, ifx.equals(y)
returnstrue
andy.equals(z)
returnstrue
, thenx.equals(z)
should returntrue
. - It is consistent: for any non-null reference values
x
andy
, multiple invocations ofx.equals(y)
consistently returntrue
or consistently returnfalse
, provided no information used inequals
comparisons on the objects is modified. - For any non-null reference value
x
,x.equals(null)
should returnfalse
.
The
equals
method for classObject
implements the most discriminating possible equivalence relation on objects; that is, for any non-null reference valuesx
andy
, this method returnstrue
if and only ifx
andy
refer to the same object (x == y
has the valuetrue
).Note that it is generally necessary to override the
hashCode
method whenever this method is overridden, so as to maintain the general contract for thehashCode
method, which states that equal objects must have equal hash codes.- Specified by:
equals
in interfaceMathTransform2D
- Overrides:
equals
in classorg.geotools.referencing.operation.transform.AffineTransform2D
- Parameters:
object
- the reference object with which to compare.- Returns:
true
if this object is the same as the obj argument;false
otherwise.- See Also:
MathTransform2D.hashCode()
,HashMap
- It is reflexive: for any non-null reference value
-
-