|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectMatrixFactory
public final class MatrixFactory
Static utility methods for creating matrix. This factory selects one of the Matrix1
,
Matrix2
, Matrix3
, Matrix4
or GeneralMatrix
implementation
according the desired matrix size. Note that if the matrix size is know at compile time,
it may be more efficient to invoke directly the constructor of the appropriate class instead.
modules/library/referencing (gt-referencing.jar)
Method Summary | |
---|---|
static XMatrix |
create(int size)
Creates a square identity matrix of size size × size . |
static XMatrix |
create(int numRow,
int numCol)
Creates a matrix of size numRow × numCol . |
static XMatrix |
create(Matrix matrix)
Creates a new matrix which is a copy of the specified matrix. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static XMatrix create(int size)
size
× size
.
size
- For an affine transform, this is the number of source and target dimensions + 1.
public static XMatrix create(int numRow, int numCol)
numRow
× numCol
.
Elements on the diagonal j==i are set to 1.
numRow
- For an affine transform, this is the number of
target dimensions + 1.numCol
- For an affine transform, this is the number of
source dimensions + 1.
public static XMatrix create(Matrix matrix)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |