/** * Transforms a single coordinate in a list of ordinal values, and optionally returns * the derivative at that location. */ @Override public Matrix transform(final double[] srcPts, final int srcOff, final double[] dstPts, final int dstOff, final boolean derivate) { transform(srcPts, srcOff, dstPts, dstOff, 1); return derivate ? derivative((DirectPosition) null) : null; }
/** * Initializes the {@link #transform} field to a {@link CopyTransform} instance created * from the given argument. Then verifies that the matrix is consistent with the transform. */ private void create(final int srcDim, final int... indices) { transform = new CopyTransform(srcDim, indices); assertEquals(transform, CopyTransform.create(((LinearTransform) transform).getMatrix())); validate(); }
copyInverse = new CopyTransform(indices.length, reverse); copyInverse.inverse = this;
final LinearTransform candidate = CopyTransform.create(matrix); if (candidate != null) { return candidate;
/** * Replaces the current {@link CopyTransform} by an instance of {@link ProjectiveTransform}. */ private void makeProjectiveTransform() { transform = new ProjectiveTransform(((CopyTransform) transform).getMatrix()); }
copyInverse = new CopyTransform(indices.length, reverse); copyInverse.inverse = this;
final LinearTransform candidate = CopyTransform.create(matrix); if (candidate != null) { return candidate;
return new CopyTransform(srcDim, indices);
/** * Transforms a single coordinate in a list of ordinal values, and optionally returns * the derivative at that location. */ @Override public Matrix transform(final double[] srcPts, final int srcOff, final double[] dstPts, final int dstOff, final boolean derivate) { transform(srcPts, srcOff, dstPts, dstOff, 1); return derivate ? derivative((DirectPosition) null) : null; }
return new CopyTransform(srcDim, indices);