- All Superinterfaces:
MathTransform
Transforms one-dimensional coordinate points.
CoordinateOperation.getMathTransform() may return 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
Extension to OGC/ISO standard
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 a transform method accepting a single double primitive type.
-
Method Summary
Modifier and TypeMethodDescriptiondoublederivative(double value) Gets the derivative of this function at a value.default intReturns the number of dimensions of input points, which shall be 1.default intReturns the number of dimensions of output points, which shall be 1.default MathTransform1Dinverse()Returns the inverse transform of this object.doubletransform(double value) Transforms the specified value.Methods inherited from interface org.opengis.referencing.operation.MathTransform
derivative, isIdentity, toWKT, transform, transform, transform, transform, transform, transform, transform, transform, transform
-
Method Details
-
getSourceDimensions
Returns the number of dimensions of input points, which shall be 1.- Specified by:
getSourceDimensionsin interfaceMathTransform- Returns:
- always 1.
-
getTargetDimensions
Returns the number of dimensions of output points, which shall be 1.- Specified by:
getTargetDimensionsin interfaceMathTransform- Returns:
- always 1.
-
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
Returns the inverse transform of this object.- Specified by:
inversein interfaceMathTransform- Returns:
- the inverse transform.
- Throws:
NoninvertibleTransformException- if the transform cannot be inverted.- See Also:
-