Interface LinearTransform

All Superinterfaces:
MathTransform
All Known Implementing Classes:
AffineTransform2D, GeocentricTranslation, IdentityTransform, LinearTransform1D, ProjectiveTransform

public interface LinearTransform extends MathTransform
Interface for linear MathTransforms. A linear transform can be express as an affine transform using a matrix. The number of columns is equals to the number of source dimensions plus 1, and the number of rows is equals to the number of target dimensions plus 1.
Since:
2.0
Author:
Martin Desruisseaux (IRD)
  • Method Details

    • getMatrix

      Matrix getMatrix()
      Returns this transform as an affine transform matrix.
      Returns:
      A copy of the underlying matrix.
    • isIdentity

      boolean isIdentity(double tolerance)
      Tests whether this transform does not move any points, by using the provided tolerance value. The signification of tolerance value is the same than in the following pseudo-code:
       getMatrix().isIdentity(tolerance);
       
      Parameters:
      tolerance - The tolerance factor.
      Returns:
      true if this transform is the identity one
      Since:
      2.4