|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.geotools.referencing.wkt.Formattable
org.geotools.referencing.operation.transform.AbstractMathTransform
org.geotools.referencing.operation.transform.LinearTransform1D
A one dimensional, linear transform. Input values x are converted into output values y using the following equation:
This class is the same as a 2×2 affine transform. However, this specialized class is faster. It is defined there because extensively used byGridCoverage2D.
LogarithmicTransform1D,
ExponentialTransform1D,
Serialized Form| Nested Class Summary |
| Nested classes inherited from class org.geotools.referencing.operation.transform.AbstractMathTransform |
AbstractMathTransform.Inverse |
| Field Summary | |
static LinearTransform1D |
IDENTITY
The identity transform. |
double |
offset
The value to add to input values. |
double |
scale
The value which is multiplied to input values. |
| Constructor Summary | |
protected |
LinearTransform1D(double scale,
double offset)
Constructs a new linear transform. |
| Method Summary | |
static LinearTransform1D |
create(double scale,
double offset)
Constructs a new linear transform. |
org.opengis.referencing.operation.Matrix |
derivative(org.opengis.spatialschema.geometry.DirectPosition point)
Gets the derivative of this transform at a point. |
double |
derivative(double value)
Gets the derivative of this function at a value. |
boolean |
equals(java.lang.Object object)
Compares the specified object with this math transform for equality. |
org.opengis.referencing.operation.Matrix |
getMatrix()
Returns this transform as an affine transform matrix. |
org.opengis.parameter.ParameterDescriptorGroup |
getParameterDescriptors()
Returns the parameter descriptors for this math transform. |
org.opengis.parameter.ParameterValueGroup |
getParameterValues()
Returns the matrix elements as a group of parameters values. |
int |
getSourceDimensions()
Gets the dimension of input points, which is 1. |
int |
getTargetDimensions()
Gets the dimension of output points, which is 1. |
int |
hashCode()
Returns a hash value for this transform. |
org.opengis.referencing.operation.MathTransform |
inverse()
Creates the inverse transform of this object. |
boolean |
isIdentity()
Tests whether this transform does not move any points. |
double |
transform(double value)
Transforms the specified value. |
void |
transform(double[] srcPts,
int srcOff,
double[] dstPts,
int dstOff,
int numPts)
Transforms a list of coordinate point ordinal values. |
void |
transform(float[] srcPts,
int srcOff,
float[] dstPts,
int dstOff,
int numPts)
Transforms a list of coordinate point ordinal values. |
| Methods inherited from class org.geotools.referencing.operation.transform.AbstractMathTransform |
createTransformedShape, derivative, ensureNonNull, formatWKT, getDimSource, getDimTarget, needCopy, rollLongitude, transform, transform |
| Methods inherited from class org.geotools.referencing.wkt.Formattable |
toString, toWKT, toWKT, toWKT |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.opengis.referencing.operation.MathTransform |
toWKT, transform |
| Field Detail |
public static final LinearTransform1D IDENTITY
public final double scale
public final double offset
| Constructor Detail |
protected LinearTransform1D(double scale,
double offset)
scale - The term in the linear equation.offset - The term in the linear equation.| Method Detail |
public static LinearTransform1D create(double scale,
double offset)
scale - The term in the linear equation.offset - The term in the linear equation.public org.opengis.parameter.ParameterDescriptorGroup getParameterDescriptors()
getParameterDescriptors in class AbstractMathTransformOperationMethod.getParameters()public org.opengis.parameter.ParameterValueGroup getParameterValues()
getParameterValues in class AbstractMathTransformOperation.getParameterValues()public int getSourceDimensions()
getSourceDimensions in interface org.opengis.referencing.operation.MathTransformgetSourceDimensions in class AbstractMathTransformpublic int getTargetDimensions()
getTargetDimensions in interface org.opengis.referencing.operation.MathTransformgetTargetDimensions in class AbstractMathTransformpublic org.opengis.referencing.operation.Matrix getMatrix()
getMatrix in interface LinearTransform
public org.opengis.referencing.operation.MathTransform inverse()
throws org.opengis.referencing.operation.NoninvertibleTransformException
inverse in interface org.opengis.referencing.operation.MathTransforminverse in class AbstractMathTransformorg.opengis.referencing.operation.NoninvertibleTransformExceptionpublic boolean isIdentity()
isIdentity in interface org.opengis.referencing.operation.MathTransformisIdentity in class AbstractMathTransform
public org.opengis.referencing.operation.Matrix derivative(org.opengis.spatialschema.geometry.DirectPosition point)
throws org.opengis.referencing.operation.TransformException
AbstractMathTransform.derivative(java.awt.geom.Point2D) implementation in that no
coordinate point is required and Double.NaN may be a legal output value for
some users.
derivative in interface org.opengis.referencing.operation.MathTransformderivative in class AbstractMathTransformpoint - The coordinate point where to evaluate the derivative.
org.opengis.referencing.operation.TransformException - if the derivative can't be evaluated at the
specified point.public double derivative(double value)
derivative in interface org.opengis.referencing.operation.MathTransform1Dpublic double transform(double value)
transform in interface org.opengis.referencing.operation.MathTransform1D
public void transform(float[] srcPts,
int srcOff,
float[] dstPts,
int dstOff,
int numPts)
transform in interface org.opengis.referencing.operation.MathTransformtransform in class AbstractMathTransform
public void transform(double[] srcPts,
int srcOff,
double[] dstPts,
int dstOff,
int numPts)
transform in interface org.opengis.referencing.operation.MathTransformpublic int hashCode()
hashCode in class AbstractMathTransformpublic boolean equals(java.lang.Object object)
equals in class AbstractMathTransform
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||