protected abstract class AbstractMathTransform.Inverse extends AbstractMathTransform implements Serializable
MathTransform
. It is serializable only if the enclosing math transform is
also serializable.AbstractMathTransform.Inverse
SINGLE_LINE
Modifier | Constructor and Description |
---|---|
protected |
Inverse()
Constructs an inverse math transform.
|
Modifier and Type | Method and Description |
---|---|
Matrix |
derivative(DirectPosition point)
Gets the derivative of this transform at a point.
|
Matrix |
derivative(Point2D point)
Gets the derivative of this transform at a point.
|
boolean |
equals(Object object)
Compares the specified object with this inverse math transform for equality.
|
protected String |
formatWKT(Formatter formatter)
Format the inner part of a Well
Known Text (WKT) element.
|
String |
getName()
Returns a name for this math transform (never
null ). |
int |
getSourceDimensions()
Gets the dimension of input points.
|
int |
getTargetDimensions()
Gets the dimension of output points.
|
int |
hashCode()
Returns a hash code value for this math transform.
|
MathTransform |
inverse()
Returns the inverse of this math transform, which is the enclosing math transform.
|
boolean |
isIdentity()
Tests whether this transform does not move any points.
|
createTransformedShape, ensureNonNull, getParameterDescriptors, getParameterValues, needCopy, normalizeAngle, rollLongitude, transform, transform, transform, transform, transform
cleanupThreadLocals, toString, toWKT, toWKT, toWKT, toWKT
toWKT, transform
public String getName()
null
). The default implementation
returns the direct transform name concatenated with localized flavor (when available) of
"(Inverse transform)".getName
in class AbstractMathTransform
null
).public int getSourceDimensions()
getSourceDimensions
in interface MathTransform
getSourceDimensions
in class AbstractMathTransform
public int getTargetDimensions()
getTargetDimensions
in interface MathTransform
getTargetDimensions
in class AbstractMathTransform
public Matrix derivative(Point2D point) throws TransformException
derivative
in class AbstractMathTransform
point
- The coordinate point where to evaluate the derivative.TransformException
- if the derivative can't be evaluated at the specified point.MathTransform2D.derivative(Point2D)
public Matrix derivative(DirectPosition point) throws TransformException
derivative
in interface MathTransform
derivative
in class AbstractMathTransform
point
- The coordinate point where to evaluate the derivative.null
).TransformException
- if the derivative can't be evaluated at the specified point.public MathTransform inverse()
this
is always AbstractMathTransform.this
.inverse
in interface MathTransform
inverse
in class AbstractMathTransform
public boolean isIdentity()
isIdentity
in interface MathTransform
isIdentity
in class AbstractMathTransform
true
if this MathTransform
is an identity transform; false
otherwise.public int hashCode()
hashCode
in class AbstractMathTransform
public boolean equals(Object object)
object
in an instance of the same class than this
, and then test their enclosing math transforms.equals
in class AbstractMathTransform
object
- The object to compare with this transform.true
if the given object is a transform of the same class and if, given
identical source position, the transformed position would be the equals.protected String formatWKT(Formatter formatter)
"INVERSE_MT"
entity.formatWKT
in class AbstractMathTransform
formatter
- The formatter to use."PARAM_MT"
or "INVERSE_MT"
in the default implementation.Formattable.toWKT()
,
Formattable.toString()
Copyright © 1996–2019 Geotools. All rights reserved.