Class AbstractMathTransform1D.Inverse
- All Implemented Interfaces:
Parameterized, LenientComparable, Printable, 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
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractMathTransform
AbstractMathTransform.InverseModifier and TypeClassDescriptionprotected static classBase class for implementations of inverse math transforms. -
Constructor Summary
Constructors -
Method Summary
Modifier 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.Inverse
computeHashCode, equals, formatTo, getDomain, getSourceDimensions, getTargetDimensions, isIdentityModifier and TypeMethodDescriptionprotected intComputes a hash value for this transform.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.booleanTests whether this transform does not move any points.Methods inherited from class AbstractMathTransform
equals, getContextualParameters, getParameterDescriptors, getParameterValues, getStandardType, hashCode, transform, transform, transform, transform, transform, tryConcatenateModifier and TypeMethodDescriptionfinal booleanCompares the specified object with this math transform for strict equality.protected ContextualParametersReturns the parameters for a sequence of normalize →this→ denormalize transforms (optional operation).Returns the parameter descriptors for this math transform, ornullif unknown.Returns the parameter values for this math transform, ornullif unknown.final TypeReturns the class that defines the public properties of this instance.final intReturns a hash value for this transform.voidtransform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts) Transforms a list of coordinate tuples.voidtransform(double[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts) Transforms a list of coordinate tuples.voidtransform(float[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts) Transforms a list of coordinate tuples.voidtransform(float[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts) Transforms a list of coordinate tuples.transform(DirectPosition ptSrc, DirectPosition ptDst) Transforms the specifiedptSrcand stores the result inptDst.protected voidtryConcatenate(TransformJoiner context) Concatenates in an optimized way this math transform with its neighbor, if possible.Methods inherited from class FormattableObject
print, toString, toString, toWKTModifier and TypeMethodDescriptionvoidprint()Prints a string representation of this object to the standard output stream.Returns a Well Known Text (WKT) or an alternative text representation for this object.toString(Convention convention) Returns a Well Known Text (WKT) for this object using the specified convention.toWKT()Returns a strictly compliant Well Known Text (WKT) using the default convention, symbols and indentation.Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface MathTransform
toWKTMethods inherited from interface MathTransform1D
derivative, transformModifier and TypeMethodDescriptiondoublederivative(double value) Gets the derivative of this function at a value.doubletransform(double value) Transforms the specified value.
-
Constructor Details
-
Inverse
protected Inverse()Constructs an inverse math transform.
-
-
Method Details
-
inverse
Returns the inverse of this math transform. The returned transform should be the enclosing math transform.- Specified by:
inversein interfaceMathTransform- Specified by:
inversein interfaceMathTransform1D- Specified by:
inversein classAbstractMathTransform.Inverse- Returns:
- the inverse of this transform.
-
transform
public 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 classAbstractMathTransform- Parameters:
srcPts- the array containing the source coordinates (cannot benull).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 assrcPts. May benullif 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, orfalseif 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:
-
derivative
Gets the derivative of this transform at a point. The default implementation ensures thatpointis one-dimensional, then delegates toMathTransform1D.derivative(double).- Specified by:
derivativein interfaceMathTransform- Overrides:
derivativein classAbstractMathTransform.Inverse- Parameters:
point- the position where to evaluate the derivative, ornull.- Returns:
- the derivative at the specified point (never
null). - Throws:
MismatchedDimensionException- ifpointdoes not have the expected dimension.TransformException- if the derivative cannot be evaluated at the specified point.
-