Class MathTransformationAdapter
- Object
-
- MathTransformationAdapter
-
- All Implemented Interfaces:
MathTransformation
public class MathTransformationAdapter extends Object implements MathTransformation
Adapter class forMathTransform1D
.Simple adapter for
MathTransform1D
it provides some convenience methods for implementors.Note that it throw an
UnsupportedOperationException
for the operations that must be implemented by implementors, namely:- transform methods
- inverse methods
- derivative methods
- Author:
- Simone Giannecchini, GeoSolutions.
-
-
Constructor Summary
Constructors Constructor Description MathTransformationAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
derivative(double value)
int
getSourceDimensions()
int
getTargetDimensions()
MathTransformation
inverseTransform()
boolean
isIdentity()
double
transform(double value)
Position
transform(Position ptSrc, Position ptDst)
-
-
-
Method Detail
-
derivative
public double derivative(double value) throws TransformException
- Specified by:
derivative
in interfaceMathTransformation
- Throws:
TransformException
-
transform
public double transform(double value)
- Specified by:
transform
in interfaceMathTransformation
-
getSourceDimensions
public int getSourceDimensions()
- Specified by:
getSourceDimensions
in interfaceMathTransformation
-
getTargetDimensions
public int getTargetDimensions()
- Specified by:
getTargetDimensions
in interfaceMathTransformation
-
inverseTransform
public MathTransformation inverseTransform()
- Specified by:
inverseTransform
in interfaceMathTransformation
-
isIdentity
public boolean isIdentity()
- Specified by:
isIdentity
in interfaceMathTransformation
-
transform
public Position transform(Position ptSrc, Position ptDst)
- Specified by:
transform
in interfaceMathTransformation
-
-