public class Matrix3
extends java.lang.Object
0 3 6
1 4 7
2 5 8
Constructor and Description |
---|
Matrix3()
Default constructor will make empty three-dimensional matrix.
|
Matrix3(double n11,
double n12,
double n13,
double n21,
double n22,
double n23,
double n31,
double n32,
double n33) |
Modifier and Type | Method and Description |
---|---|
Float32Array |
applyToVector3Array(Float32Array array) |
Float32Array |
applyToVector3Array(Float32Array array,
int offset,
int length) |
Matrix3 |
clone() |
Matrix3 |
copy(Matrix3 m) |
double |
determinant() |
Float32Array |
getArray()
get the current Matrix which is represented
by Array[9] which the following indexes:
0 3 6
1 4 7
2 5 8
|
Matrix3 |
getInverse(Matrix4 m)
Sets the value of this matrix to the matrix inverse of the passed matrix
m.
|
Matrix3 |
getNormalMatrix(Matrix4 m) |
Matrix3 |
identity() |
Matrix3 |
multiply(double s) |
Matrix3 |
set(double n11,
double n12,
double n13,
double n21,
double n22,
double n23,
double n31,
double n32,
double n33) |
java.lang.String |
toString()
get information of the current Matrix
which is represented as list of it values.
|
Matrix3 |
transpose()
Transpose the current matrix where its rows will be the
columns or its columns are the rows of the current matrix.
|
Float32Array |
transposeIntoArray()
Transpose the current matrix into new Matrix which is represented
by Array[9]
|
public Matrix3()
public Matrix3(double n11, double n12, double n13, double n21, double n22, double n23, double n31, double n32, double n33)
public Matrix3 set(double n11, double n12, double n13, double n21, double n22, double n23, double n31, double n32, double n33)
public Float32Array getArray()
0 3 6
1 4 7
2 5 8
public Matrix3 identity()
public Float32Array applyToVector3Array(Float32Array array)
public Float32Array applyToVector3Array(Float32Array array, int offset, int length)
public Matrix3 multiply(double s)
public double determinant()
public Matrix3 getInverse(Matrix4 m)
m
- the matrix to be invertedpublic Matrix3 transpose()
public Float32Array transposeIntoArray()
public java.lang.String toString()
toString
in class java.lang.Object
public Matrix3 clone()
clone
in class java.lang.Object