public class Matrix
extends org.ejml.simple.SimpleMatrix
| Constructor and Description |
|---|
Matrix(double[][] data) |
Matrix(int rows,
int cols) |
Matrix(org.ejml.simple.SimpleMatrix m)
Copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
static Matrix |
identity(int size) |
Matrix |
pseudoinverse() |
Matrix |
pseudoinverse(double lambda) |
void |
setColumn(Vector3d col,
int column) |
void |
setRotationQuaternion(DQuaternion quat)
setRotationQuaternion builds a rotation from a
Quaternion. |
void |
setScale(double x,
double y,
double z)
Sets the scale.
|
void |
setScale(Vector3d scale)
Sets the scale.
|
void |
setTranslation(Vector3d translation) |
DQuaternion |
toRotationQuat() |
Vector3d |
toScaleVector()
Retrieves the scale vector from the matrix and stores it into a given
vector.
|
void |
toScaleVector(Vector3d vector)
Retrieves the scale vector from the matrix and stores it into a given
vector.
|
java.lang.String |
toScilabString(java.lang.String name,
org.ejml.simple.SimpleMatrix m)
Just for some debug informations in order to compare the results with the scilab computation program.
|
java.lang.String |
toString() |
DTransform |
toTransform() |
Vector3d |
toTranslationVector() |
createMatrix, diag, random, randomNormal, wrapcombine, conditionP2, copy, determinant, divide, dot, eig, elementDiv, elementExp, elementLog, elementMaxAbs, elementMult, elementPower, elementPower, elementSum, extractDiag, extractMatrix, extractVector, get, get, getIndex, getMatrix, getNumElements, hasUncountable, insertIntoThis, invert, isIdentical, isInBounds, isVector, iterator, kron, loadBinary, loadCSV, minus, minus, mult, negative, normF, numCols, numRows, plus, plus, plus, print, print, print, printDimensions, pseudoInverse, reshape, saveToFileBinary, saveToFileCSV, scale, set, set, set, set, setColumn, setRow, solve, svd, svd, trace, transpose, zeropublic Matrix(int rows,
int cols)
public Matrix(org.ejml.simple.SimpleMatrix m)
public Matrix(double[][] data)
public static Matrix identity(int size)
public Matrix pseudoinverse()
public Matrix pseudoinverse(double lambda)
public void setColumn(Vector3d col, int column)
public java.lang.String toScilabString(java.lang.String name,
org.ejml.simple.SimpleMatrix m)
name - the name of the matrixm - the matrix to print outpublic java.lang.String toString()
toString in class org.ejml.simple.SimpleBase<org.ejml.simple.SimpleMatrix>public void setTranslation(Vector3d translation)
public void setScale(Vector3d scale)
scale - the scale vector to setpublic void setScale(double x,
double y,
double z)
x - the X scaley - the Y scalez - the Z scalepublic void setRotationQuaternion(DQuaternion quat)
setRotationQuaternion builds a rotation from a
Quaternion.quat - the quaternion to build the rotation from.java.lang.NullPointerException - if quat is null.public DTransform toTransform()
public Vector3d toTranslationVector()
public DQuaternion toRotationQuat()
public Vector3d toScaleVector()
public void toScaleVector(Vector3d vector)
vector - the vector where the scale will be stored