Example usage for Java com.badlogic.gdx.math Matrix4 fields, constructors, methods, implement or subclass
The text is from its open source code.
int | M00 XX: Typically the unrotated X component for scaling, also the cosine of the angle when rotated on the Y and/or Z axis. |
int | M01 XY: Typically the negative sine of the angle when rotated on the Z axis. |
int | M02 XZ: Typically the sine of the angle when rotated on the Y axis. |
int | M03 XW: Typically the translation of the X component. |
int | M10 YX: Typically the sine of the angle when rotated on the Z axis. |
int | M11 YY: Typically the unrotated Y component for scaling, also the cosine of the angle when rotated on the X and/or Z axis. |
int | M12 YZ: Typically the negative sine of the angle when rotated on the X axis. |
int | M13 YW: Typically the translation of the Y component. |
int | M20 ZX: Typically the negative sine of the angle when rotated on the Y axis. |
int | M21 ZY: Typical the sine of the angle when rotated on the X axis. |
int | M22 ZZ: Typically the unrotated Z component for scaling, also the cosine of the angle when rotated on the X and/or Y axis. |
int | M23 ZW: Typically the translation of the Z component. |
int | M30 WX: Typically the value zero. |
int | M31 WY: Typically the value zero. |
int | M32 WZ: Typically the value zero. |
int | M33 WW: Typically the value one. |
Matrix4(Matrix4 matrix) Constructs a matrix from the given matrix. | |
Matrix4(float[] values) Constructs a matrix from the given float array. | |
Matrix4(Quaternion quaternion) Constructs a rotation matrix from the given Quaternion . | |
Matrix4() Constructs an identity matrix | |
Matrix4(Vector3 position, Quaternion rotation, Vector3 scale) Construct a matrix from the given translation, rotation and scale. |
Matrix4 | cpy() |
Quaternion | getRotation(Quaternion rotation) Gets the rotation of this matrix. |
Vector3 | getTranslation(Vector3 position) |
float[] | getValues() |
Matrix4 | idt() Sets the matrix to an identity matrix. |
Matrix4 | inv() Inverts the matrix. |
Matrix4 | mul(Matrix4 matrix) Postmultiplies this matrix with the given matrix, storing the result in this matrix. |
Matrix4 | rotate(float axisX, float axisY, float axisZ, float degrees) Postmultiplies this matrix with a (counter-clockwise) rotation matrix. |
Matrix4 | rotate(Quaternion rotation) Postmultiplies this matrix with a (counter-clockwise) rotation matrix. |
Matrix4 | rotateRad(Vector3 axis, float radians) Postmultiplies this matrix with a (counter-clockwise) rotation matrix. |
Matrix4 | scale(float scaleX, float scaleY, float scaleZ) Postmultiplies this matrix with a scale matrix. |
Matrix4 | scl(Vector3 scale) |
Matrix4 | scl(float scale) |
Matrix4 | set(Matrix4 matrix) Sets the matrix to the given matrix. |
Matrix4 | set(float[] values) Sets the matrix to the given matrix as a float array. |
Matrix4 | set(Quaternion quaternion) Sets the matrix to a rotation matrix representing the quaternion. |
Matrix4 | set(Matrix3 mat) Sets this matrix to the given 3x3 matrix. |
Matrix4 | set(Affine2 affine) Sets this matrix to the given affine matrix. |
Matrix4 | set(float quaternionX, float quaternionY, float quaternionZ, float quaternionW) Sets the matrix to a rotation matrix representing the quaternion. |
Matrix4 | set(Vector3 xAxis, Vector3 yAxis, Vector3 zAxis, Vector3 pos) Sets the four columns of the matrix which correspond to the x-, y- and z-axis of the vector space this matrix creates as well as the 4th column representing the translation of any point that is multiplied by this matrix. |
Matrix4 | setToLookAt(Vector3 direction, Vector3 up) Sets the matrix to a look at matrix with a direction and an up vector. |
Matrix4 | setToOrtho2D(float x, float y, float width, float height) Sets this matrix to an orthographic projection matrix with the origin at (x,y) extending by width and height. |
Matrix4 | setToRotation(Vector3 axis, float degrees) Sets the matrix to a rotation matrix around the given axis. |
Matrix4 | setToRotation(final Vector3 v1, final Vector3 v2) Set the matrix to a rotation matrix between two vectors. |
Matrix4 | setTranslation(Vector3 vector) Sets the 4th column to the translation vector. |
Matrix4 | setTranslation(float x, float y, float z) Sets the 4th column to the translation vector. |
Matrix4 | tra() Transposes the matrix. |
Matrix4 | translate(float x, float y, float z) Postmultiplies this matrix by a translation matrix. |
Matrix4 | translate(Vector3 translation) Postmultiplies this matrix by a translation matrix. |
Matrix4 | trn(float x, float y, float z) Adds a translational component to the matrix in the 4th column. |