- All Implemented Interfaces:
Serializable
,Cloneable
,Matrix
A
Matrix
built on top of Java3D vecmath
library.- Since:
- 3.1
- See Also:
-
Constructor Summary
ConstructorDescriptionSimpleMatrix
(int numRow, int numCol) Creates a matrix of sizenumRow
×numCol
.SimpleMatrix
(Matrix matrix) Creates a new matrix initialized to the same content than the given matrix. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Returns a clone of this matrix.boolean
Returnstrue
if this matrix is an identity matrix.Methods inherited from class GMatrix
add, add, 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 interface Matrix
getElement, getNumCol, getNumRow, setElement
-
Constructor Details
-
SimpleMatrix
public SimpleMatrix(int numRow, int numCol) Creates a matrix of sizenumRow
×numCol
. Elements on the diagonal (j == i) are set to 1.- Parameters:
numRow
- number of rows.numCol
- number of columns.
-
SimpleMatrix
Creates a new matrix initialized to the same content than the given matrix.- Parameters:
matrix
- the matrix to copy.
-
-
Method Details
-
isIdentity
public boolean isIdentity()Returnstrue
if this matrix is an identity matrix.- Specified by:
isIdentity
in interfaceMatrix
- Returns:
true
if this matrix is an identity matrix.
-
clone
Returns a clone of this matrix.
-