|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.vecmath.GMatrix org.deegree.crs.utilities.Matrix
public class Matrix
The Matrix
class TODO add documentation here
Constructor Summary | |
---|---|
Matrix(java.awt.geom.AffineTransform transform)
Construct a 3×3 matrix from the specified affine transform. |
|
Matrix(Axis[] srcAxis,
Axis[] dstAxis)
Construct an affine transform changing axis order. |
|
Matrix(double[][] matrix)
Constructs a new matrix from a two-dimensional array of doubles. |
|
Matrix(javax.vecmath.GMatrix matrix)
Constructs a new matrix and copies the initial values from the parameter matrix. |
|
Matrix(int size)
Construct a square identity matrix of size size × size . |
|
Matrix(int numRow,
int numCol)
Construct a matrix of size numRow × numCol . |
|
Matrix(int numRow,
int numCol,
double[] matrix)
Constructs a numRow × numCol matrix initialized to the values in
the matrix array. |
Method Summary | |
---|---|
boolean |
isAffine()
Returns true if this matrix is an affine transform. |
boolean |
isIdentity()
Returns true if this matrix is an identity matrix. |
javax.vecmath.Matrix3d |
toAffineTransform()
Copies the first 2x3 values into an affine transform object. |
Methods inherited from class javax.vecmath.GMatrix |
---|
add, add, clone, copySubMatrix, epsilonEquals, epsilonEquals, equals, equals, get, get, get, get, get, getColumn, getColumn, getElement, getNumCol, getNumRow, getRow, getRow, hashCode, identityMinus, invert, invert, LUD, mul, mul, mul, mulTransposeBoth, mulTransposeLeft, mulTransposeRight, negate, negate, set, set, set, set, set, set, setColumn, setColumn, setElement, setIdentity, setRow, setRow, setScale, setSize, setZero, sub, sub, SVD, toString, trace, transpose, transpose |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Matrix(int size)
size
× size
.
size
- public Matrix(int numRow, int numCol)
numRow
× numCol
. Elements on the
diagonal j==i are set to 1.
numRow
- numCol
- public Matrix(int numRow, int numCol, double[] matrix)
numRow
× numCol
matrix initialized to the values in
the matrix
array. The array values are copied in one row at a time in row major fashion. The array
should be exactly numRow*numCol
in length. Note that because row and column numbering begins with
zero, row
and numCol
will be one larger than the maximum possible matrix index
values.
numRow
- numCol
- matrix
- public Matrix(double[][] matrix) throws java.lang.IllegalArgumentException
matrix
- Array of rows. Each row must have the same length.
java.lang.IllegalArgumentException
- if the specified matrix is not regular (i.e. if all rows doesn't have the same length).public Matrix(javax.vecmath.GMatrix matrix)
matrix
- public Matrix(java.awt.geom.AffineTransform transform)
transform
- public Matrix(Axis[] srcAxis, Axis[] dstAxis)
0, 1, 0
-1, 0, 0
0, 0, 1
Axis orientation can be inverted only. Rotating axis (e.g. from NORTH,WEST, to NORTH,DOWN, ) is not supported.
srcAxis
- The set of axis orientation for source coordinate system.dstAxis
- The set of axis orientation for destination coordinate system.
java.lang.IllegalArgumentException
- if the affine transform can't be created for some other reason.Method Detail |
---|
public final boolean isAffine()
true
if this matrix is an affine transform. A transform is affine if the matrix is square
and last row contains only zeros, except in the last column which contains 1.
true
if this matrix is an affine transform.public final javax.vecmath.Matrix3d toAffineTransform()
public final boolean isIdentity()
true
if this matrix is an identity matrix.
true
if this matrix is an identity matrix.
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org