| org.geotools.referencing.operation.transform.AbstractMathTransform org.geotools.referencing.operation.transform.LinearTransform1D
All known Subclasses: org.geotools.referencing.operation.transform.ConstantTransform1D, org.geotools.referencing.operation.transform.IdentityTransform1D,
Field Summary | |
final public static LinearTransform1D | IDENTITY The identity transform. | final public double | offset The value to add to input values. | final public 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 | |
public static LinearTransform1D | create(double scale, double offset) Constructs a new linear transform. | public Matrix | derivative(DirectPosition point) Gets the derivative of this transform at a point. | public double | derivative(double value) Gets the derivative of this function at a value. | public boolean | equals(Object object) Compares the specified object with this math transform for equality. | public Matrix | getMatrix() Returns this transform as an affine transform matrix. | public ParameterDescriptorGroup | getParameterDescriptors() Returns the parameter descriptors for this math transform. | public ParameterValueGroup | getParameterValues() Returns the matrix elements as a group of parameters values. | public int | getSourceDimensions() Gets the dimension of input points, which is 1. | public int | getTargetDimensions() Gets the dimension of output points, which is 1. | public int | hashCode() Returns a hash value for this transform. | public MathTransform | inverse() Creates the inverse transform of this object. | public boolean | isIdentity() Tests whether this transform does not move any points. | public boolean | isIdentity(double tolerance) Tests whether this transform does not move any points by using the provided tolerance. | public double | transform(double value) Transforms the specified value. | public void | transform(float[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts) Transforms a list of coordinate point ordinal values. | public void | transform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts) Transforms a list of coordinate point ordinal values. |
offset | final public double offset(Code) | | The value to add to input values.
|
scale | final public double scale(Code) | | The value which is multiplied to input values.
|
LinearTransform1D | protected LinearTransform1D(double scale, double offset)(Code) | | Constructs a new linear transform. This constructor is provided for subclasses only.
Instances should be created using the
, which
may returns optimized implementations for some particular argument values.
Parameters: scale - The scale term in the linear equation. Parameters: offset - The offset term in the linear equation. |
create | public static LinearTransform1D create(double scale, double offset)(Code) | | Constructs a new linear transform.
Parameters: scale - The scale term in the linear equation. Parameters: offset - The offset term in the linear equation. |
derivative | public Matrix derivative(DirectPosition point) throws TransformException(Code) | | Gets the derivative of this transform at a point. This implementation is different
from the default
AbstractMathTransform.derivative implementation in that no
coordinate point is required and
Double.NaN may be a legal output value for
some users.
|
derivative | public double derivative(double value)(Code) | | Gets the derivative of this function at a value.
|
equals | public boolean equals(Object object)(Code) | | Compares the specified object with this math transform for equality.
|
getMatrix | public Matrix getMatrix()(Code) | | Returns this transform as an affine transform matrix.
|
getParameterDescriptors | public ParameterDescriptorGroup getParameterDescriptors()(Code) | | Returns the parameter descriptors for this math transform.
|
getParameterValues | public ParameterValueGroup getParameterValues()(Code) | | Returns the matrix elements as a group of parameters values. The number of parameters
depends on the matrix size. Only matrix elements different from their default value
will be included in this group.
A copy of the parameter values for this math transform. |
getSourceDimensions | public int getSourceDimensions()(Code) | | Gets the dimension of input points, which is 1.
|
getTargetDimensions | public int getTargetDimensions()(Code) | | Gets the dimension of output points, which is 1.
|
hashCode | public int hashCode()(Code) | | Returns a hash value for this transform.
This value need not remain consistent between
different implementations of the same class.
|
inverse | public MathTransform inverse() throws NoninvertibleTransformException(Code) | | Creates the inverse transform of this object.
|
isIdentity | public boolean isIdentity()(Code) | | Tests whether this transform does not move any points.
|
transform | public double transform(double value)(Code) | | Transforms the specified value.
|
transform | public void transform(float[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts)(Code) | | Transforms a list of coordinate point ordinal values.
|
transform | public void transform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts)(Code) | | Transforms a list of coordinate point ordinal values.
|
Methods inherited from org.geotools.referencing.operation.transform.AbstractMathTransform | MathTransform concatenate(MathTransform other, boolean applyOtherFirst)(Code)(Java Doc) public Shape createTransformedShape(Shape shape) throws TransformException(Code)(Java Doc) final Shape createTransformedShape(Shape shape, AffineTransform preTransform, AffineTransform postTransform, int orientation) throws TransformException(Code)(Java Doc) public Matrix derivative(Point2D point) throws TransformException(Code)(Java Doc) public Matrix derivative(DirectPosition point) throws TransformException(Code)(Java Doc) protected static void ensureNonNull(String name, Object object) throws IllegalArgumentException(Code)(Java Doc) public boolean equals(Object object)(Code)(Java Doc) protected String formatWKT(Formatter formatter)(Code)(Java Doc) public ParameterDescriptorGroup getParameterDescriptors()(Code)(Java Doc) public ParameterValueGroup getParameterValues()(Code)(Java Doc) abstract public int getSourceDimensions()(Code)(Java Doc) abstract public int getTargetDimensions()(Code)(Java Doc) public int hashCode()(Code)(Java Doc) public MathTransform inverse() throws NoninvertibleTransformException(Code)(Java Doc) static Matrix invert(Matrix matrix) throws NoninvertibleTransformException(Code)(Java Doc) public boolean isIdentity()(Code)(Java Doc) protected static boolean needCopy(int srcOff, int dimSource, int dstOff, int dimTarget, int numPts)(Code)(Java Doc) protected static double rollLongitude(double x)(Code)(Java Doc) static GeneralMatrix toGMatrix(Matrix matrix)(Code)(Java Doc) static XMatrix toXMatrix(Matrix matrix)(Code)(Java Doc) public Point2D transform(Point2D ptSrc, Point2D ptDst) throws TransformException(Code)(Java Doc) public DirectPosition transform(DirectPosition ptSrc, DirectPosition ptDst) throws TransformException(Code)(Java Doc) public void transform(float[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts) throws TransformException(Code)(Java Doc)
|
|
|