Class PassThroughTransform2D

All Implemented Interfaces:
Serializable, Parameterized, LenientComparable, org.opengis.referencing.operation.MathTransform, org.opengis.referencing.operation.MathTransform2D

final class PassThroughTransform2D extends PassThroughTransform implements org.opengis.referencing.operation.MathTransform2D
A pass-through transform in the two-dimensional case.
Since:
0.5
Version:
0.5
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Serial number for inter-operability with different versions.
      See Also:
  • Constructor Details

    • PassThroughTransform2D

      PassThroughTransform2D(int firstAffectedCoordinate, org.opengis.referencing.operation.MathTransform subTransform, int numTrailingCoordinates)
      Creates a pass through transform.
      Parameters:
      firstAffectedCoordinate - index of the first affected coordinate.
      subTransform - the sub transform.
      numTrailingCoordinates - number of trailing coordinates to pass through.
  • Method Details

    • transform

      public Point2D transform(Point2D ptSrc, Point2D ptDst) throws org.opengis.referencing.operation.TransformException
      Transforms the specified ptSrc and stores the result in ptDst. Implementation is similar but not identical to AbstractMathTransform2D.transform(Point2D, Point2D). The difference is in the transform(…) method invoked.
      Specified by:
      transform in interface org.opengis.referencing.operation.MathTransform2D
      Throws:
      org.opengis.referencing.operation.TransformException
    • createTransformedShape

      public Shape createTransformedShape(Shape shape) throws org.opengis.referencing.operation.TransformException
      Transforms the specified shape.
      Specified by:
      createTransformedShape in interface org.opengis.referencing.operation.MathTransform2D
      Throws:
      org.opengis.referencing.operation.TransformException
    • derivative

      public org.opengis.referencing.operation.Matrix derivative(Point2D point) throws org.opengis.referencing.operation.TransformException
      Gets the derivative of this transform at a point.
      Specified by:
      derivative in interface org.opengis.referencing.operation.MathTransform2D
      Returns:
      Throws:
      org.opengis.referencing.operation.TransformException - if the sub-transform failed.
    • inverse

      public org.opengis.referencing.operation.MathTransform2D inverse() throws org.opengis.referencing.operation.NoninvertibleTransformException
      Creates the inverse transform of this object.
      Specified by:
      inverse in interface org.opengis.referencing.operation.MathTransform
      Specified by:
      inverse in interface org.opengis.referencing.operation.MathTransform2D
      Overrides:
      inverse in class PassThroughTransform
      Returns:
      Throws:
      org.opengis.referencing.operation.NoninvertibleTransformException - if the sub-transform is not invertible.