Class AbstractMathTransform1D.Inverse
- All Implemented Interfaces:
- Parameterized,- LenientComparable,- MathTransform,- MathTransform1D
- Enclosing class:
- AbstractMathTransform1D
protected abstract static class AbstractMathTransform1D.Inverse
extends AbstractMathTransform.Inverse
implements MathTransform1D
Base class for implementation of inverse math transforms.
 This inner class is the inverse of the enclosing 
AbstractMathTransform1D.
 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.7
Defined in the sis-referencing module
- 
Nested Class SummaryNested classes/interfaces inherited from class AbstractMathTransformAbstractMathTransform.Inverse
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionderivative(DirectPosition point) Gets the derivative of this transform at a point.abstract MathTransform1Dinverse()Returns the inverse of this math transform.transform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, boolean derivate) Transforms a single point in the given array and opportunistically computes its derivative if requested.Methods inherited from class AbstractMathTransform.InversecomputeHashCode, equals, formatTo, getDomain, getSourceDimensions, getTargetDimensions, isIdentityMethods inherited from class AbstractMathTransformequals, getContextualParameters, getParameterDescriptors, getParameterValues, hashCode, 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 MathTransformgetSourceDimensions, getTargetDimensions, isIdentity, toWKT, transform, transform, transform, transform, transformMethods inherited from interface MathTransform1Dderivative, 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- MathTransform1D
- Specified by:
- inversein class- AbstractMathTransform.Inverse
- Returns:
- the inverse of this transform.
 
- 
transformpublic Matrix transform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, boolean derivate) throws TransformException Transforms a single point in the given array and opportunistically computes its derivative if requested. The default implementation delegates toMathTransform1D.transform(double)and potentially toMathTransform1D.derivative(double). Subclasses may override this method for performance reason.- Specified by:
- transformin class- AbstractMathTransform
- Parameters:
- srcPts- the array containing the source coordinates (cannot be- null).
- srcOff- the offset to the point to be transformed in the source array.
- dstPts- the array into which the transformed coordinates is returned. May be the same than- srcPts. May be- nullif only the derivative matrix is desired.
- dstOff- the offset to the location of the transformed point that is stored in the destination array.
- derivate-- truefor computing the derivative, or- falseif not needed.
- Returns:
- the matrix of the transform derivative at the given source position,
         or nullif thederivateargument isfalse.
- Throws:
- TransformException- if the point cannot be transformed or if a problem occurred while calculating the derivative.
- See Also:
 
- 
derivativeGets the derivative of this transform at a point. The default implementation ensures thatpointis one-dimensional, then delegates toMathTransform1D.derivative(double).- Specified by:
- derivativein interface- MathTransform
- Overrides:
- derivativein class- AbstractMathTransform.Inverse
- Parameters:
- point- the position where to evaluate the derivative, or- null.
- Returns:
- the derivative at the specified point (never null).
- Throws:
- MismatchedDimensionException- if- pointdoes not have the expected dimension.
- TransformException- if the derivative cannot be evaluated at the specified point.
 
 
-