| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| private static final long | |
| private float[] | |
| public float[] |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | Matrix3(float[]
The float array to copy. Remember that this matrix is in
column major order. (The float array
is not modified.) values)Constructs a matrix from the given float array. |
| Modifier and Type | Method and Description |
|---|---|
| public float | |
| public float | |
| public float | |
| public Vector2 | |
| public Vector2 | |
| public float[] | Returns: The float values that make up this matrix in column-major order.Get the values in this matrix. |
| public Matrix3 | Returns: This matrix for the purpose of chaining operations.Sets this matrix to the identity matrix |
| public Matrix3 | Returns: This matrix for the purpose of chaining operations.Inverts this matrix given that the determinant is != 0. |
| public Matrix3 | |
| private static void | mul(float[]
The float array representing the first matrix. Must have at least 9 elements. mata, float[] The float array representing the second matrix. Must have at least 9 elements. matb)Multiplies matrix a with matrix b in the following manner: mul(A, B) => A := AB |
| public Matrix3 | |
| public Matrix3 | Returns: This matrix for the purpose of chaining.The angle in degrees degrees)Postmultiplies this matrix with a (counter-clockwise) rotation matrix. |
| public Matrix3 | Returns: This matrix for the purpose of chaining.The angle in radians radians)Postmultiplies this matrix with a (counter-clockwise) rotation matrix. |
| public Matrix3 | Returns: This matrix for the purpose of chaining.The scale in the x-axis. scaleX, float The scale in the y-axis. scaleY)Postmultiplies this matrix with a scale matrix. |
| public Matrix3 | |
| public Matrix3 | Returns: This matrix for the purpose of chaining methods together.The single value that will be used to scale both the x and y components. scale)Scale the matrix in the both the x and y components by the scalar value. |
| public Matrix3 | |
| public Matrix3 | |
| public Matrix3 | |
| public Matrix3 | |
| public Matrix3 | |
| public Matrix3 | Returns: This matrix for the purpose of chaining methods together.The matrix, in float form, that is to be copied. Remember that this matrix is in
column major order. values)Sets the matrix to the given matrix as a float array. |
| public Matrix3 | Returns: This matrix for the purpose of chaining operations.the angle in degrees. degrees)Sets this matrix to a rotation matrix that will rotate any vector in counter-clockwise direction around the z-axis. |
| public Matrix3 | |
| public Matrix3 | |
| public Matrix3 | Returns: This matrix for the purpose of chaining operations.the angle in radians. radians)Sets this matrix to a rotation matrix that will rotate any vector in counter-clockwise direction around the z-axis. |
| public Matrix3 | Returns: This matrix for the purpose of chaining operations.the scale in x scaleX, float the scale in y scaleY)Sets this matrix to a scaling matrix. |
| public Matrix3 | Returns: This matrix for the purpose of chaining operations.The scale vector. scale)Sets this matrix to a scaling matrix. |
| public Matrix3 | Returns: This matrix for the purpose of chaining operations.the translation in x x, float the translation in y y)Sets this matrix to a translation matrix. |
| public Matrix3 | Returns: This matrix for the purpose of chaining operations.The translation vector. translation)Sets this matrix to a translation matrix. |
| public String | |
| public Matrix3 | Returns: This matrix for the purpose of chaining.The x-component of the translation vector. x, float The y-component of the translation vector. y)Postmultiplies this matrix by a translation matrix. |
| public Matrix3 | |
| public Matrix3 | Returns: This matrix for the purpose of chaining methods together.Transposes the current matrix. |
| public Matrix3 | |
| public Matrix3 | Returns: This matrix for the purpose of chaining.The x-component of the translation vector. x, float The y-component of the translation vector. y)Adds a translational component to the matrix in the 3rd column. |
| public Matrix3 |
| M00 | back to summary |
|---|---|
| public static final int M00 | |
| M01 | back to summary |
|---|---|
| public static final int M01 | |
| M02 | back to summary |
|---|---|
| public static final int M02 | |
| M10 | back to summary |
|---|---|
| public static final int M10 | |
| M11 | back to summary |
|---|---|
| public static final int M11 | |
| M12 | back to summary |
|---|---|
| public static final int M12 | |
| M20 | back to summary |
|---|---|
| public static final int M20 | |
| M21 | back to summary |
|---|---|
| public static final int M21 | |
| M22 | back to summary |
|---|---|
| public static final int M22 | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| tmp | back to summary |
|---|---|
| private float[] tmp | |
| val | back to summary |
|---|---|
| public float[] val | |
| Matrix3 | back to summary |
|---|---|
| public Matrix3() | |
| Matrix3 | back to summary |
|---|---|
| public Matrix3(Matrix3 matrix) | |
| Matrix3 | back to summary |
|---|---|
| public Matrix3(float[] values) Constructs a matrix from the given float array. The array must have at least 9 elements; the first 9 will be copied.
| |
| det | back to summary |
|---|---|
public float det()
| |
| getRotation | back to summary |
|---|---|
| public float getRotation() | |
| getRotationRad | back to summary |
|---|---|
| public float getRotationRad() | |
| getScale | back to summary |
|---|---|
| public Vector2 getScale(Vector2 scale) | |
| getTranslation | back to summary |
|---|---|
| public Vector2 getTranslation(Vector2 position) | |
| getValues | back to summary |
|---|---|
| public float[] getValues() Get the values in this matrix.
| |
| idt | back to summary |
|---|---|
| public Matrix3 idt() Sets this matrix to the identity matrix
| |
| inv | back to summary |
|---|---|
| public Matrix3 inv() Inverts this matrix given that the determinant is != 0.
| |
| mul | back to summary |
|---|---|
| public Matrix3 mul(Matrix3 m) Postmultiplies this matrix with the provided matrix and stores the result in this matrix. For example: A.mul(B) results in A := AB | |
| mul | back to summary |
|---|---|
| private static void mul(float[] mata, float[] matb) Multiplies matrix a with matrix b in the following manner: mul(A, B) => A := AB
| |
| mulLeft | back to summary |
|---|---|
| public Matrix3 mulLeft(Matrix3 m) Premultiplies this matrix with the provided matrix and stores the result in this matrix. For example: A.mulLeft(B) results in A := BA | |
| rotate | back to summary |
|---|---|
| public Matrix3 rotate(float degrees) Postmultiplies this matrix with a (counter-clockwise) rotation matrix. Postmultiplication is also used by OpenGL ES' 1.x glTranslate/glRotate/glScale.
| |
| rotateRad | back to summary |
|---|---|
| public Matrix3 rotateRad(float radians) Postmultiplies this matrix with a (counter-clockwise) rotation matrix. Postmultiplication is also used by OpenGL ES' 1.x glTranslate/glRotate/glScale.
| |
| scale | back to summary |
|---|---|
| public Matrix3 scale(float scaleX, float scaleY) Postmultiplies this matrix with a scale matrix. Postmultiplication is also used by OpenGL ES' 1.x glTranslate/glRotate/glScale.
| |
| scale | back to summary |
|---|---|
| public Matrix3 scale(Vector2 scale) Postmultiplies this matrix with a scale matrix. Postmultiplication is also used by OpenGL ES' 1.x glTranslate/glRotate/glScale. | |
| scl | back to summary |
|---|---|
| public Matrix3 scl(float scale) Scale the matrix in the both the x and y components by the scalar value.
| |
| scl | back to summary |
|---|---|
| public Matrix3 scl(Vector2 scale) Scale this matrix using the x and y components of the vector but leave the rest of the matrix alone. | |
| scl | back to summary |
|---|---|
| public Matrix3 scl(Vector3 scale) Scale this matrix using the x and y components of the vector but leave the rest of the matrix alone. | |
| set | back to summary |
|---|---|
| public Matrix3 set(Matrix3 mat) Copies the values from the provided matrix to this matrix. | |
| set | back to summary |
|---|---|
| public Matrix3 set(Affine2 affine) Copies the values from the provided affine matrix to this matrix. The last row is set to (0, 0, 1). | |
| set | back to summary |
|---|---|
| public Matrix3 set(Matrix4 mat) Sets this 3x3 matrix to the top left 3x3 corner of the provided 4x4 matrix. | |
| set | back to summary |
|---|---|
| public Matrix3 set(float[] values) Sets the matrix to the given matrix as a float array. The float array must have at least 9 elements; the first 9 will be copied.
| |
| setToRotation | back to summary |
|---|---|
| public Matrix3 setToRotation(float degrees) Sets this matrix to a rotation matrix that will rotate any vector in counter-clockwise direction around the z-axis.
| |
| setToRotation | back to summary |
|---|---|
| public Matrix3 setToRotation(Vector3 axis, float degrees) | |
| setToRotation | back to summary |
|---|---|
| public Matrix3 setToRotation(Vector3 axis, float cos, float sin) | |
| setToRotationRad | back to summary |
|---|---|
| public Matrix3 setToRotationRad(float radians) Sets this matrix to a rotation matrix that will rotate any vector in counter-clockwise direction around the z-axis.
| |
| setToScaling | back to summary |
|---|---|
| public Matrix3 setToScaling(float scaleX, float scaleY) Sets this matrix to a scaling matrix.
| |
| setToScaling | back to summary |
|---|---|
| public Matrix3 setToScaling(Vector2 scale) Sets this matrix to a scaling matrix. | |
| setToTranslation | back to summary |
|---|---|
| public Matrix3 setToTranslation(float x, float y) Sets this matrix to a translation matrix.
| |
| setToTranslation | back to summary |
|---|---|
| public Matrix3 setToTranslation(Vector2 translation) Sets this matrix to a translation matrix. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| translate | back to summary |
|---|---|
| public Matrix3 translate(float x, float y) Postmultiplies this matrix by a translation matrix. Postmultiplication is also used by OpenGL ES' 1.x glTranslate/glRotate/glScale.
| |
| translate | back to summary |
|---|---|
| public Matrix3 translate(Vector2 translation) Postmultiplies this matrix by a translation matrix. Postmultiplication is also used by OpenGL ES' 1.x glTranslate/glRotate/glScale. | |
| transpose | back to summary |
|---|---|
| public Matrix3 transpose() Transposes the current matrix.
| |
| trn | back to summary |
|---|---|
| public Matrix3 trn(Vector2 vector) Adds a translational component to the matrix in the 3rd column. The other columns are untouched. | |
| trn | back to summary |
|---|---|
| public Matrix3 trn(float x, float y) Adds a translational component to the matrix in the 3rd column. The other columns are untouched.
| |
| trn | back to summary |
|---|---|
| public Matrix3 trn(Vector3 vector) Adds a translational component to the matrix in the 3rd column. The other columns are untouched. | |