public interface LinearTransform extends MathTransform
Such a coordinate transformation can be represented by a matrix of arbitrary size, which is given by the
getMatrix() method. The relationship between matrix size and transform dimensions is as below:
PerspectiveTransformin Java Advanced Imaging. For example a square matrix of size 4×4 is used for transforming three-dimensional coordinates. The transformed points
(x',y',z')are computed as below:
where u, v, w and t are obtained by
LinearTransformis to use the
|Modifier and Type||Method and Description|
Transforms an array of relative distance vectors.
Returns the coefficients of this linear transform as a matrix.
Returns the inverse transform of this object, which shall also be linear.
trueif this transform is affine. An affine transform preserves parallelism.
trueif this transform is affine.
MathTransformis equivalent to multiplying the returned matrix by a vector containing the ordinate values with an additional 1 in the last row. See
LinearTransformclass Javadoc for more details.
void deltaTransform(double srcPts, int srcOff, double dstPts, int dstOff, int numPts) throws TransformException
srcPts- The array containing the source vectors.
srcOff- The offset to the first vector to be transformed in the source array.
dstPts- The array into which the transformed vectors are returned. Can be the same than
dstOff- The offset to the location of the first transformed vector that is stored in the destination array.
numPts- The number of vector objects to be transformed.
TransformException- if a vector can not be transformed.
AffineTransform.deltaTransform(double, int, double, int, int)
LinearTransform inverse() throws NoninvertibleTransformException
Copyright © 2010–2016 The Apache Software Foundation. All rights reserved.