Class AbstractMathTransform.Inverse
- All Implemented Interfaces:
- Parameterized,- LenientComparable,- MathTransform
- Direct Known Subclasses:
- AbstractMathTransform1D.Inverse,- AbstractMathTransform2D.Inverse
- Enclosing class:
- AbstractMathTransform
Base class for implementations of inverse math transforms.
 Subclasses need to implement the 
inverse() method.
 Serialization
This object may or may not be serializable, at implementation choices. Most Apache SIS implementations are serializable, but the serialized objects are not guaranteed to be compatible with future SIS versions. Serialization should be used only for short term storage or RMI between applications running the same SIS version.- Since:
- 0.5
Defined in the sis-referencing module
- 
Nested Class SummaryNested classes/interfaces inherited from class AbstractMathTransformAbstractMathTransform.Inverse
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected intComputes a hash value for this transform.derivative(DirectPosition point) Gets the derivative of this transform at a point.booleanequals(Object object, ComparisonMode mode) Compares the specified object with this inverse math transform for equality.protected StringFormats the inner part of a Well Known Text version 1 (WKT 1) element.getDomain(DomainDefinition criteria) Returns the ranges of coordinate values which can be used as inputs.intGets the dimension of input points.intGets the dimension of output points.abstract MathTransforminverse()Returns the inverse of this math transform.booleanTests whether this transform does not move any points.Methods inherited from class AbstractMathTransformequals, getContextualParameters, getParameterDescriptors, getParameterValues, hashCode, transform, transform, transform, transform, transform, transform, tryConcatenateMethods inherited from class FormattableObjectprint, toString, toString, toWKTMethods inherited from class Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface MathTransformtoWKT
- 
Constructor Details- 
Inverseprotected Inverse()Constructs an inverse math transform.
 
- 
- 
Method Details- 
getSourceDimensionspublic int getSourceDimensions()Gets the dimension of input points. The default implementation returns the dimension of output points of the inverse math transform.- Specified by:
- getSourceDimensionsin interface- MathTransform
- Specified by:
- getSourceDimensionsin class- AbstractMathTransform
- Returns:
- the number of dimensions of input points.
- See Also:
 
- 
getTargetDimensionspublic int getTargetDimensions()Gets the dimension of output points. The default implementation returns the dimension of input points of the inverse math transform.- Specified by:
- getTargetDimensionsin interface- MathTransform
- Specified by:
- getTargetDimensionsin class- AbstractMathTransform
- Returns:
- the number of dimensions of output points.
- See Also:
 
- 
getDomainReturns the ranges of coordinate values which can be used as inputs. The default implementation invokesinverse().getDomain(criteria)and transforms the returned envelope.- Overrides:
- getDomainin class- AbstractMathTransform
- Parameters:
- criteria- controls the definition of transform domain.
- Returns:
- estimation of a domain where this transform is considered numerically applicable.
- Throws:
- TransformException- if the domain cannot be estimated.
- Since:
- 1.3
- See Also:
 
- 
derivativeGets the derivative of this transform at a point. The default implementation computes the inverse of the matrix returned by the inverse math transform.- Specified by:
- derivativein interface- MathTransform
- Overrides:
- derivativein class- AbstractMathTransform
- Parameters:
- point- the coordinate tuple where to evaluate the derivative.
- Returns:
- the derivative at the specified point (never null).
- Throws:
- NullPointerException- if the derivative depends on coordinates and- pointis- null.
- MismatchedDimensionException- if- pointdoes not have the expected dimension.
- TransformException- if the derivative cannot be evaluated at the specified point.
 
- 
inverseReturns the inverse of this math transform. The returned transform should be the enclosing math transform.- Specified by:
- inversein interface- MathTransform
- Overrides:
- inversein class- AbstractMathTransform
- Returns:
- the inverse of this transform.
 
- 
isIdentitypublic boolean isIdentity()Tests whether this transform does not move any points. The default implementation delegates this tests to the inverse math transform.- Specified by:
- isIdentityin interface- MathTransform
- Overrides:
- isIdentityin class- AbstractMathTransform
- Returns:
 
- 
computeHashCodeprotected int computeHashCode()Computes a hash value for this transform. This method is invoked byAbstractMathTransform.hashCode()when first needed.- Overrides:
- computeHashCodein class- AbstractMathTransform
- Returns:
- the hash code value. This value may change between different execution of the Apache SIS library.
 
- 
equalsCompares the specified object with this inverse math transform for equality. The default implementation tests ifobjectin an instance of the same class thanthis, and if so compares their inverseMathTransform.- Specified by:
- equalsin interface- LenientComparable
- Overrides:
- equalsin class- AbstractMathTransform
- Parameters:
- object- the object to compare with this transform.
- mode- the strictness level of the comparison. Default to- STRICT.
- Returns:
- trueif the given object is considered equals to this math transform.
- See Also:
 
- 
formatToFormats the inner part of a Well Known Text version 1 (WKT 1) element. If this inverse math transform has any parameter values, then this method formats the WKT as in the super-class method. Otherwise this method formats the math transform as an"Inverse_MT"entity.Compatibility note:Param_MTandInverse_MTare defined in the WKT 1 specification only.- Overrides:
- formatToin class- AbstractMathTransform
- Parameters:
- formatter- the formatter to use.
- Returns:
- the WKT element name, which is "Param_MT"or"Inverse_MT"in the default implementation.
- See Also:
 
 
-