This change has been reverted.
Command line:
svn diff --extensions "--unified --ignore-space-change --ignore-all-space --ignore-eol-style" -r24484:24485 https://svn.osgeo.org/geotools/trunk/modules/library/referencing/src/main/java/org/geotools/referencing/operation/transform/LinearTransform1D.java
Revision 24484 | Revision 24485 |
---|---|
* Tests whether this transform does not move any points.
*/
public boolean isIdentity() {
return offset==0 && scale==1;
}
/**
* Gets the derivative of this transform at a point. This implementation is different
* from the default {@link AbstractMathTransform#derivative} implementation in that no
* coordinate point is required and {@link Double#NaN} may be a legal output value for |
* Tests whether this transform does not move any points. */ public boolean isIdentity() { return isIdentity(0); } /** * Tests whether this transform does not move any points. * * <p> * It uses the provided <code>tolerance</code> before perfoming * the check. * @snce 2.3.1 */ public boolean isIdentity(double tolerance) { tolerance=Math.abs(tolerance); return Math.abs(offset)<=tolerance&& Math.abs(scale-1)<=tolerance; } /** * Gets the derivative of this transform at a point. This implementation is different * from the default {@link AbstractMathTransform#derivative} implementation in that no * coordinate point is required and {@link Double#NaN} may be a legal output value for |