NTv2Transform extends AbstractMathTransform implements MathTransform2D, Serializable { @Override public synchronized MathTransform2D inverse() { if (inverse == null) { inverse = new Inverse(); } return inverse; } NTv2Transform(URI file); @Override int hashCode(); @Override boolean equals(final Object object); @Override synchronized MathTransform2D inverse(); @Override void transform(double[] srcPts, int srcOff, double[] dstPts,
            int dstOff, int numPts); void inverseTransform(double[] srcPts, int srcOff, double[] dstPts,
            int dstOff, int numPts); @Override int getSourceDimensions(); @Override int getTargetDimensions(); @Override ParameterValueGroup getParameterValues();  }
@Test public void testInverse() throws TransformException { assertSame(transform, transform.inverse().inverse()); double[] p1 = new double[2]; double[] p2 = new double[2]; transform.inverse().transform(TEST_POINT_SRC, 0, p1, 0, 1); transform.inverseTransform(TEST_POINT_SRC, 0, p2, 0, 1); assertEquals(p1[0], p2[0], TOLERANCE); assertEquals(p1[1], p2[1], TOLERANCE); }