- All Superinterfaces:
MathTransform
Transforms one-dimensional coordinate points.
CoordinateOperation.getMathTransform()
may returns instance of this
interface when source and destination coordinate systems are both one dimensional.
MathTransform1D
extends MathTransform
by adding a simple method
transforming a value without the overhead of creating data array.- Since:
- 1.0
- Departure from OGC/ISO abstract specification:
Addition of element not in the ISO/OGC specification
This interface is not part of the OGC specification. It has been added as a complement ofMathTransform2D
and because the 1D case provides opportunities for optimization through atransform
method accepting a singledouble
primitive type.
-
Method Summary
Modifier and TypeMethodDescriptiondouble
derivative
(double value) Gets the derivative of this function at a value.inverse()
Creates the inverse transform of this object.double
transform
(double value) Transforms the specified value.Methods inherited from interface MathTransform
derivative, getSourceDimensions, getTargetDimensions, isIdentity, toWKT, transform, transform, transform, transform, transform
-
Method Details
-
transform
Transforms the specified value.- Parameters:
value
- The value to transform.- Returns:
- the transformed value.
- Throws:
TransformException
- if the value cannot be transformed.
-
derivative
Gets the derivative of this function at a value. The derivative is the 1×1 matrix of the non-translating portion of the approximate affine map at the value.- Parameters:
value
- The value where to evaluate the derivative.- Returns:
- The derivative at the specified point.
- Throws:
TransformException
- if the derivative cannot be evaluated at the specified point.
-
inverse
Creates the inverse transform of this object.- Specified by:
inverse
in interfaceMathTransform
- Returns:
- The inverse transform.
- Throws:
NoninvertibleTransformException
- if the transform cannot be inverted.- Since:
- 2.2
-