Interface MathTransform1D
- All Superinterfaces:
MathTransform
- All Known Implementing Classes:
AbstractMathTransform1D, AbstractMathTransform1D.Inverse
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
-
Method Summary
Modifier and TypeMethodDescriptiondoublederivative(double value) Gets the derivative of this function at a value.inverse()Creates the inverse transform of this object.doubletransform(double value) Transforms the specified value.Methods inherited from interface MathTransform
derivative, getSourceDimensions, getTargetDimensions, isIdentity, toWKT, transform, transform, transform, transform, transformModifier and TypeMethodDescriptionderivative(DirectPosition point) Gets the derivative of this transform at a point.intGets the dimension of input points.intGets the dimension of output points.booleanTests whether this transform does not move any points.toWKT()Returns a Well Known Text (WKT) for this object.voidtransform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts) Transforms a list of coordinate point ordinal values.voidtransform(double[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts) Transforms a list of coordinate point ordinal values.voidtransform(float[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts) Transforms a list of coordinate point ordinal values.voidtransform(float[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts) Transforms a list of coordinate point ordinal values.transform(DirectPosition ptSrc, DirectPosition ptDst) Transforms the specifiedptSrcand stores the result inptDst.
-
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:
inversein interfaceMathTransform- Returns:
- The inverse transform.
- Throws:
NoninvertibleTransformException- if the transform cannot be inverted.- Since:
- 2.2
-