Class MathTransformationAdapter

  • All Implemented Interfaces:
    MathTransformation

    public class MathTransformationAdapter
    extends Object
    implements MathTransformation
    Adapter class for MathTransform1D.

    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:

    1. transform methods
    2. inverse methods
    3. derivative methods
    Author:
    Simone Giannecchini, GeoSolutions.
    • Constructor Detail

      • MathTransformationAdapter

        public MathTransformationAdapter()
    • Method Detail

      • transform

        public double transform​(double value)
        Specified by:
        transform in interface MathTransformation
      • getSourceDimensions

        public int getSourceDimensions()
        Specified by:
        getSourceDimensions in interface MathTransformation
      • getTargetDimensions

        public int getTargetDimensions()
        Specified by:
        getTargetDimensions in interface MathTransformation
      • inverseTransform

        public MathTransformation inverseTransform()
        Specified by:
        inverseTransform in interface MathTransformation
      • isIdentity

        public boolean isIdentity()
        Specified by:
        isIdentity in interface MathTransformation
      • transform

        public Position transform​(Position ptSrc,
                                  Position ptDst)
        Specified by:
        transform in interface MathTransformation