| Modifier and Type | Field and Description |
|---|---|
| private static final double | |
| public float | m00
The first element of the first row. |
| public float | m01
The second element of the first row. |
| public float | m02
The third element of the first row. |
| public float | m03
The fourth element of the first row. |
| public float | m10
The first element of the second row. |
| public float | m11
The second element of the second row. |
| public float | m12
The third element of the second row. |
| public float | m13
The fourth element of the second row. |
| public float | m20
The first element of the third row. |
| public float | m21
The second element of the third row. |
| public float | m22
The third element of the third row. |
| public float | m23
The fourth element of the third row. |
| public float | m30
The first element of the fourth row. |
| public float | m31
The second element of the fourth row. |
| public float | m32
The third element of the fourth row. |
| public float | m33
The fourth element of the fourth row. |
| pack-priv static final long |
| Access | Constructor and Description |
|---|---|
| public | Matrix4f(float
the [0][0] element m00, float the [0][1] element m01, float the [0][2] element m02, float the [0][3] element m03, float the [1][0] element m10, float the [1][1] element m11, float the [1][2] element m12, float the [1][3] element m13, float the [2][0] element m20, float the [2][1] element m21, float the [2][2] element m22, float the [2][3] element m23, float the [3][0] element m30, float the [3][1] element m31, float the [3][2] element m32, float the [3][3] element m33)Constructs and initializes a Matrix4f from the specified 16 values. |
| public | Matrix4f(float[]
the array of length 16 containing in order v)Constructs and initializes a Matrix4f from the specified 16 element array. |
| public | Matrix4f(Quat4f
the quaternion value representing the rotational component q1, Vector3f the translational component of the matrix t1, float the scale value applied to the rotational components s)Constructs and initializes a Matrix4f from the quaternion, translation, and scale values; the scale is applied only to the rotational components of the matrix (upper 3x3) and not to the translational components. |
| public | |
| public | |
| public | Matrix4f(Matrix3f
the rotation matrix representing the rotational components m1, Vector3f the translational components of the matrix t1, float the scale value applied to the rotational components s)Constructs and initializes a Matrix4f from the rotation matrix, translation, and scale values; the scale is applied only to the rotational components of the matrix (upper 3x3) and not to the translational components of the matrix. |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public Object | Returns: a clone of this instance.Overrides java. |
| public final float | |
| public boolean | epsilonEquals(Matrix4f
the matrix to be compared to this matrix m1, float the threshold value epsilon)Returns true if the L-infinite distance between this matrix and matrix m1 is less than or equal to the epsilon parameter, otherwise returns false. |
| public boolean | |
| public boolean | Returns: true or falsethe matrix with which the comparison is made. t1)Overrides java. |
| public final void | |
| public final void | |
| public final float | |
| public final void | |
| public final void | |
| public final void | |
| public final void | getColumn(int
the matrix column column, float[] the array into which the matrix row values will be copied v)Copies the matrix values in the specified column into the array parameter. |
| public final float | Returns: the value at the indexed elementthe row number to be retrieved (zero indexed) row, int the column number to be retrieved (zero indexed) column)Retrieves the value at the specified row and column of this matrix. |
| public final float | |
| public final float | |
| public final float | |
| public final float | |
| public final float | |
| public final float | |
| public final float | |
| public final float | |
| public final float | |
| public final float | |
| public final float | |
| public final float | |
| public final float | |
| public final float | |
| public final float | |
| public final float | |
| public final void | getRotationScale(Matrix3f
the matrix that will hold the values m1)Gets the upper 3x3 values of this matrix and places them into the matrix m1. |
| public final void | |
| public final void | getRow(int
the matrix row row, float[] the array into which the matrix row values will be copied v)Copies the matrix values in the specified row into the array parameter. |
| public final float | Returns: the scale factor of this matrixPerforms an SVD normalization of this matrix to calculate and return the uniform scale factor. |
| private final void | |
| public int | Returns: the integer hash code valueOverrides java. |
| public final void | |
| public final void | |
| pack-priv final void | |
| pack-priv static void | luBacksubstitution(double[] matrix1, int[] row_perm, double[] matrix2)
Solves a set of linear equations. |
| pack-priv static boolean | Returns: true if the matrix is nonsingular, or false otherwise.Given a 4x4 array "matrix0", this function replaces it with the LU decomposition of a row-wise permutation of itself. |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | mulTransposeBoth(Matrix4f
the matrix on the left hand side of the multiplication m1, Matrix4f the matrix on the right hand side of the multiplication m2)Multiplies the transpose of matrix m1 times the transpose of matrix m2, and places the result into this. |
| public final void | mulTransposeLeft(Matrix4f
the matrix on the left hand side of the multiplication m1, Matrix4f the matrix on the right hand side of the multiplication m2)Multiplies the transpose of matrix m1 times matrix m2, and places the result into this. |
| public final void | mulTransposeRight(Matrix4f
the matrix on the left hand side of the multiplication m1, Matrix4f the matrix on the right hand side of the multiplication m2)Multiplies matrix m1 times the transpose of matrix m2, and places the result into this. |
| public final void | |
| public final void | |
| public final void | rotX(float
the angle to rotate about the X axis in radians angle)Sets the value of this matrix to a counter clockwise rotation about the x axis. |
| public final void | rotY(float
the angle to rotate about the Y axis in radians angle)Sets the value of this matrix to a counter clockwise rotation about the y axis. |
| public final void | rotZ(float
the angle to rotate about the Z axis in radians angle)Sets the value of this matrix to a counter clockwise rotation about the z axis. |
| public final void | |
| public final void | set(AxisAngle4f
the axis and angle to be converted a1)Sets the value of this matrix to the matrix conversion of the (single precision) axis and angle argument. |
| public final void | |
| public final void | set(AxisAngle4d
the axis and angle to be converted a1)Sets the value of this matrix to the matrix conversion of the double precision axis and angle argument. |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | set(Matrix3f
the single-precision 3x3 matrix m1)Sets the rotational component (upper 3x3) of this matrix to the matrix values in the single precision Matrix3f argument; the other elements of this matrix are initialized as if this were an identity matrix (i.e., affine matrix with no translational component). |
| public final void | set(Matrix3d
the double-precision 3x3 matrix m1)Sets the rotational component (upper 3x3) of this matrix to the matrix values in the double precision Matrix3d argument; the other elements of this matrix are initialized as if this were an identity matrix (i.e., affine matrix with no translational component). |
| public final void | set(float
the scale factor for the matrix scale)Sets the value of this matrix to a scale matrix with the the passed scale amount. |
| public final void | set(float[]
the single precision array of length 16 m)Sets the values in this Matrix4f equal to the row-major array parameter (ie, the first four elements of the array will be copied into the first row of this matrix, etc.). |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | setColumn(int
the column number to be modified (zero indexed) column, float the first row element x, float the second row element y, float the third row element z, float the fourth row element w)Sets the specified column of this matrix4f to the four values provided. |
| public final void | |
| public final void | setColumn(int
the column number to be modified (zero indexed) column, float[] the replacement column v)Sets the specified column of this matrix4f to the four values provided. |
| public final void | setElement(int
the row number to be modified (zero indexed) row, int the column number to be modified (zero indexed) column, float the new value value)Sets the specified element of this matrix4f to the value provided. |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | setRotation(Matrix3d
double precision 3x3 matrix m1)Sets the rotational component (upper 3x3) of this matrix to the matrix values in the double precision Matrix3d argument; the other elements of this matrix are unchanged; a singular value decomposition is performed on this object's upper 3x3 matrix to factor out the scale, then this object's upper 3x3 matrix components are replaced by the passed rotation components, and then the scale is reapplied to the rotational components. |
| public final void | setRotation(Matrix3f
single precision 3x3 matrix m1)Sets the rotational component (upper 3x3) of this matrix to the matrix values in the single precision Matrix3f argument; the other elements of this matrix are unchanged; a singular value decomposition is performed on this object's upper 3x3 matrix to factor out the scale, then this object's upper 3x3 matrix components are replaced by the passed rotation components, and then the scale is reapplied to the rotational components. |
| public final void | setRotation(Quat4f
the quaternion that specifies the rotation q1)Sets the rotational component (upper 3x3) of this matrix to the matrix equivalent values of the quaternion argument; the other elements of this matrix are unchanged; a singular value decomposition is performed on this object's upper 3x3 matrix to factor out the scale, then this object's upper 3x3 matrix components are replaced by the matrix equivalent of the quaternion, and then the scale is reapplied to the rotational components. |
| public final void | setRotation(Quat4d
the quaternion that specifies the rotation q1)Sets the rotational component (upper 3x3) of this matrix to the matrix equivalent values of the quaternion argument; the other elements of this matrix are unchanged; a singular value decomposition is performed on this object's upper 3x3 matrix to factor out the scale, then this object's upper 3x3 matrix components are replaced by the matrix equivalent of the quaternion, and then the scale is reapplied to the rotational components. |
| public final void | setRotation(AxisAngle4f
the axis-angle to be converted (x, y, z, angle) a1)Sets the rotational component (upper 3x3) of this matrix to the matrix equivalent values of the axis-angle argument; the other elements of this matrix are unchanged; a singular value decomposition is performed on this object's upper 3x3 matrix to factor out the scale, then this object's upper 3x3 matrix components are replaced by the matrix equivalent of the axis-angle, and then the scale is reapplied to the rotational components. |
| public final void | setRotationScale(Matrix3f
the matrix that will be the new upper 3x3 m1)Replaces the upper 3x3 matrix values of this matrix with the values in the matrix m1. |
| public final void | setRow(int
the row number to be modified (zero indexed) row, float the first column element x, float the second column element y, float the third column element z, float the fourth column element w)Sets the specified row of this matrix4f to the four values provided. |
| public final void | |
| public final void | setRow(int
the row number to be modified (zero indexed) row, float[] the replacement row v)Sets the specified row of this matrix4f to the four values provided in the passed array. |
| public final void | setScale(float
the new scale amount scale)Sets the scale component of the current matrix by factoring out the current scale (by doing an SVD) from the rotational component and multiplying by the new scale. |
| public final void | setTranslation(Vector3f
the translational component trans)Modifies the translational components of this matrix to the values of the Vector3f argument; the other values of this matrix are not modified. |
| public final void | |
| public final void | |
| public final void | |
| public String | Returns: the String representationOverrides java. |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void |