Class AbstractMathTransform2D.Inverse
- All Implemented Interfaces:
- Parameterized,- LenientComparable,- MathTransform,- MathTransform2D
- Enclosing class:
- AbstractMathTransform2D
protected abstract static class AbstractMathTransform2D.Inverse
extends AbstractMathTransform.Inverse
implements MathTransform2D
Base class for implementation of inverse math transforms.
 This inner class is the inverse of the enclosing 
AbstractMathTransform2D.
 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 TypeMethodDescriptioncreateTransformedShape(Shape shape) Transforms the specified shape.derivative(Point2D point) Gets the derivative of this transform at a point.abstract MathTransform2Dinverse()Returns the inverse of this math transform.Transforms the specifiedptSrcand stores the result inptDst.Methods inherited from class AbstractMathTransform.InversecomputeHashCode, derivative, equals, formatTo, getDomain, getSourceDimensions, getTargetDimensions, isIdentityMethods 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 MathTransformderivative, getSourceDimensions, getTargetDimensions, isIdentity, toWKT, transform, transform, transform, transform, transform
- 
Constructor Details- 
Inverseprotected Inverse()Constructs an inverse math transform.
 
- 
- 
Method Details- 
inverseReturns the inverse of this math transform. The returned transform should be the enclosing math transform.- Specified by:
- inversein interface- MathTransform
- Specified by:
- inversein interface- MathTransform2D
- Specified by:
- inversein class- AbstractMathTransform.Inverse
- Returns:
- the inverse of this transform.
 
- 
transformTransforms the specifiedptSrcand stores the result inptDst. The default implementation invokesAbstractMathTransform.transform(double[], int, double[], int, boolean)using a temporary array of doubles.- Specified by:
- transformin interface- MathTransform2D
- Parameters:
- ptSrc- the coordinate tuple to be transformed.
- ptDst- the coordinate tuple that stores the result of transforming- ptSrc, or- nullif a new point shall be created.
- Returns:
- the coordinate tuple after transforming ptSrcand storing the result inptDst, or in a new point ifptDstwas null.
- Throws:
- TransformException- if the point cannot be transformed.
- See Also:
 
- 
createTransformedShapeTransforms the specified shape. The default implementation computes quadratic curves using three points for each line segment in the shape. The returned object is often aPath2D, but may also be aLine2Dor aQuadCurve2Dif such simplification is possible.- Specified by:
- createTransformedShapein interface- MathTransform2D
- Parameters:
- shape- shape to transform.
- Returns:
- transformed shape, or shapeif this transform is the identity transform.
- Throws:
- TransformException- if a transform failed.
 
- 
derivativeGets the derivative of this transform at a point. The default implementation performs the following steps:- Copy the coordinates in a temporary array and pass that array to the
       AbstractMathTransform.transform(double[], int, double[], int, boolean)method, with thederivateboolean argument set totrue.
- If the latter method returned a non-null matrix, returns that matrix.
       Otherwise throws TransformException.
 - Specified by:
- derivativein interface- MathTransform2D
- Parameters:
- point- the coordinate tuple where to evaluate the derivative.
- Returns:
- the derivative at the specified point as a 2×2 matrix.
- Throws:
- TransformException- if the derivative cannot be evaluated at the specified point.
 
- Copy the coordinates in a temporary array and pass that array to the
       
 
-