| java.lang.Object java.awt.geom.AffineTransform org.geotools.referencing.operation.matrix.AffineTransform2D
AffineTransform2D | public class AffineTransform2D extends AffineTransform implements Matrix(Code) | | An affine matrix of fixed
×
size. Here, the term "affine"
means a matrix with the last row fixed to
[0,0,1] values. Such matrices are used for
affine transformations in a 2D space.
This class both extends the Java2D
AffineTransform class and implements
the
Matrix interface. It allows interoperbility for code that need to pass the same
matrix to both Java2D API and more generic API working with coordinates of
arbitrary dimension.
This class do not implements the
XMatrix interface because the inherited
invert() method (new in J2SE 1.6) declares a checked exception,
setZero() would be an unsupported
operation (because it is not possible to change the value at
(2,2) ),
transpose() would fails in most cases, and
isAffine() would be useless.
since: 2.3 version: $Id: AffineTransform2D.java 24493 2007-02-17 17:28:12Z desruisseaux $ author: Martin Desruisseaux |
Field Summary | |
final public static int | SIZE The matrix size, which is
. |
Method Summary | |
public double | getElement(int row, int column) Retrieves the value at the specified row and column of this matrix.
Parameters: row - The row number to be retrieved (zero indexed). Parameters: column - The column number to be retrieved (zero indexed). | final public int | getNumCol() Returns the number of colmuns in this matrix, which is always
in this implementation. | final public int | getNumRow() Returns the number of rows in this matrix, which is always
in this implementation. | public void | setElement(int row, int column, double value) Modifies the value at the specified row and column of this matrix. | public String | toString() Returns a string representation of this matrix. |
SIZE | final public static int SIZE(Code) | | The matrix size, which is
.
|
AffineTransform2D | public AffineTransform2D()(Code) | | Creates a new identity matrix.
|
AffineTransform2D | public AffineTransform2D(AffineTransform transform)(Code) | | Constructs a 3×3 matrix from the specified affine transform.
|
AffineTransform2D | public AffineTransform2D(Matrix matrix)(Code) | | Creates a new matrix initialized to the same value than the specified one.
The specified matrix size must be
×
.
|
getElement | public double getElement(int row, int column)(Code) | | Retrieves the value at the specified row and column of this matrix.
Parameters: row - The row number to be retrieved (zero indexed). Parameters: column - The column number to be retrieved (zero indexed). The value at the indexed element. |
getNumCol | final public int getNumCol()(Code) | | Returns the number of colmuns in this matrix, which is always
in this implementation.
|
getNumRow | final public int getNumRow()(Code) | | Returns the number of rows in this matrix, which is always
in this implementation.
|
setElement | public void setElement(int row, int column, double value)(Code) | | Modifies the value at the specified row and column of this matrix.
Parameters: row - The row number to be retrieved (zero indexed). Parameters: column - The column number to be retrieved (zero indexed). Parameters: value - The new matrix element value. |
toString | public String toString()(Code) | | Returns a string representation of this matrix. The returned string is implementation
dependent. It is usually provided for debugging purposes only.
|
Methods inherited from java.awt.geom.AffineTransform | public Object clone()(Code)(Java Doc) public void concatenate(AffineTransform Tx)(Code)(Java Doc) public AffineTransform createInverse() throws NoninvertibleTransformException(Code)(Java Doc) public Shape createTransformedShape(Shape pSrc)(Code)(Java Doc) public Point2D deltaTransform(Point2D ptSrc, Point2D ptDst)(Code)(Java Doc) public void deltaTransform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts)(Code)(Java Doc) public boolean equals(Object obj)(Code)(Java Doc) public double getDeterminant()(Code)(Java Doc) public void getMatrix(double[] flatmatrix)(Code)(Java Doc) public static AffineTransform getQuadrantRotateInstance(int numquadrants)(Code)(Java Doc) public static AffineTransform getQuadrantRotateInstance(int numquadrants, double anchorx, double anchory)(Code)(Java Doc) public static AffineTransform getRotateInstance(double theta)(Code)(Java Doc) public static AffineTransform getRotateInstance(double theta, double anchorx, double anchory)(Code)(Java Doc) public static AffineTransform getRotateInstance(double vecx, double vecy)(Code)(Java Doc) public static AffineTransform getRotateInstance(double vecx, double vecy, double anchorx, double anchory)(Code)(Java Doc) public static AffineTransform getScaleInstance(double sx, double sy)(Code)(Java Doc) public double getScaleX()(Code)(Java Doc) public double getScaleY()(Code)(Java Doc) public static AffineTransform getShearInstance(double shx, double shy)(Code)(Java Doc) public double getShearX()(Code)(Java Doc) public double getShearY()(Code)(Java Doc) public static AffineTransform getTranslateInstance(double tx, double ty)(Code)(Java Doc) public double getTranslateX()(Code)(Java Doc) public double getTranslateY()(Code)(Java Doc) public int getType()(Code)(Java Doc) public int hashCode()(Code)(Java Doc) public Point2D inverseTransform(Point2D ptSrc, Point2D ptDst) throws NoninvertibleTransformException(Code)(Java Doc) public void inverseTransform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts) throws NoninvertibleTransformException(Code)(Java Doc) public void invert() throws NoninvertibleTransformException(Code)(Java Doc) public boolean isIdentity()(Code)(Java Doc) public void preConcatenate(AffineTransform Tx)(Code)(Java Doc) public void quadrantRotate(int numquadrants)(Code)(Java Doc) public void quadrantRotate(int numquadrants, double anchorx, double anchory)(Code)(Java Doc) public void rotate(double theta)(Code)(Java Doc) public void rotate(double theta, double anchorx, double anchory)(Code)(Java Doc) public void rotate(double vecx, double vecy)(Code)(Java Doc) public void rotate(double vecx, double vecy, double anchorx, double anchory)(Code)(Java Doc) public void scale(double sx, double sy)(Code)(Java Doc) public void setToIdentity()(Code)(Java Doc) public void setToQuadrantRotation(int numquadrants)(Code)(Java Doc) public void setToQuadrantRotation(int numquadrants, double anchorx, double anchory)(Code)(Java Doc) public void setToRotation(double theta)(Code)(Java Doc) public void setToRotation(double theta, double anchorx, double anchory)(Code)(Java Doc) public void setToRotation(double vecx, double vecy)(Code)(Java Doc) public void setToRotation(double vecx, double vecy, double anchorx, double anchory)(Code)(Java Doc) public void setToScale(double sx, double sy)(Code)(Java Doc) public void setToShear(double shx, double shy)(Code)(Java Doc) public void setToTranslation(double tx, double ty)(Code)(Java Doc) public void setTransform(AffineTransform Tx)(Code)(Java Doc) public void setTransform(double m00, double m10, double m01, double m11, double m02, double m12)(Code)(Java Doc) public void shear(double shx, double shy)(Code)(Java Doc) public String toString()(Code)(Java Doc) public Point2D transform(Point2D ptSrc, Point2D ptDst)(Code)(Java Doc) public void transform(Point2D[] ptSrc, int srcOff, Point2D[] ptDst, int dstOff, int numPts)(Code)(Java Doc) public void transform(float[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts)(Code)(Java Doc) public void transform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts)(Code)(Java Doc) public void transform(float[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts)(Code)(Java Doc) public void transform(double[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts)(Code)(Java Doc) public void translate(double tx, double ty)(Code)(Java Doc)
|
|
|