| org.geotools.referencing.operation.transform.AbstractMathTransform org.geotools.referencing.operation.transform.LinearTransform1D org.geotools.referencing.operation.transform.ConstantTransform1D
ConstantTransform1D | final class ConstantTransform1D extends LinearTransform1D (Code) | | A one dimensional, constant transform. Output values are set to a constant value regardless
of input values. This class is really a special case of
LinearTransform1D in which
ConstantTransform1D.scale = 0 and
ConstantTransform1D.offset = constant . However, this
specialized
ConstantTransform1D class is faster.
since: 2.0 version: $Id: ConstantTransform1D.java 20874 2006-08-07 10:00:01Z jgarnett $ author: Martin Desruisseaux |
Constructor Summary | |
protected | ConstantTransform1D(double offset) Constructs a new constant transform. |
Method Summary | |
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. |
ConstantTransform1D | protected ConstantTransform1D(double offset)(Code) | | Constructs a new constant transform.
Parameters: offset - The offset term in the linear equation. |
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)
|
|
|