public class Matrix3x3 extends Matrix
Matrix.EigenvalueDecomposition, Matrix.ImmutableMatrix
Constructor and Description |
---|
Matrix3x3() |
Matrix3x3(double[][] coords) |
Modifier and Type | Method and Description |
---|---|
Matrix3x3 |
clone()
Returns a clone of this matrix.
|
double |
determinant()
Get the determinant of this matrix.
|
Vector |
getColumn(int c) |
Vector[] |
getEigenvectors()
Get the eigenvectors of a 3x3 matrix sorted by decreasing eigenvalue.
|
Vector |
getRow(int r) |
Matrix3x3 |
getTranspose()
Get the transpose of this matrix
|
Matrix |
invertThis()
Invert this matrix (overwrites this and returns it).
|
Matrix3x3 |
multiply(Matrix3x3 M) |
static Matrix3x3 |
randRotation(double[] x)
This routine maps three values (x[0], x[1], x[2]) in the range [0,1]
into a 3x3 rotation matrix, M.
|
static Matrix3x3 |
randRotation2(double[] x) |
static Matrix3x3 |
randRotation3(double scl) |
add, addThis, create4x4ColumnMatrix, createColumnMatrix, createIdentityMatrix, createRandomMatrix, createRotationMatrix, createRowMatrix, equals, equals, expand, extend, get, getCoords, getEigenvalueDecomposition, getM, getN, getSubmatrix, invert, isSquare, minor, multiply_Strassen, multiply, multiply, multiply, multiply, multiply, multiplyIn, multiplyIn, multiplyThis, multiplyThis, orthonormalizeThis, reduce, reduceThis, set, setColumn, setRow, setSubmatrix, subtract, subtractThis, toConsole, toConsole, toString, toString, transpose
public Matrix3x3 getTranspose()
Matrix
getTranspose
in class Matrix
public double determinant()
determinant
in class Matrix
public Matrix invertThis()
invertThis
in class Matrix
public Vector[] getEigenvectors()
public static Matrix3x3 randRotation(double[] x)
x[0] in [ 0, d ] x[1] in [ 0, 1 ] x[2] in [ 0, d ]where 0 < d < 1 controls the size of the perturbation. Any of the random variables may be stratified (or "jittered") for a slightly more even distribution. *
public static Matrix3x3 randRotation2(double[] x)
public static Matrix3x3 randRotation3(double scl)