| Modifier and Type | Field and Description |
|---|---|
| public float | |
| public float | |
| public float | |
| public float | |
| public float | |
| public float | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public float | |
| public Vector2 | Returns: Filled position.Output vector. position)Get the x-y translation component of the matrix. |
| public Affine2 | Returns: This matrix for the purpose of chaining operations.Sets this matrix to the identity matrix |
| public Affine2 | Returns: This matrix for the purpose of chaining operations.Inverts this matrix given that the determinant is != 0. |
| public boolean | |
| public boolean | Returns: True if scale is 1 and rotation is 0.Check if the this is a plain translation matrix. |
| public Affine2 | |
| public Affine2 | |
| public Affine2 | Returns: This matrix for the purpose of chaining.The angle in degrees degrees)Premultiplies this matrix with a (counter-clockwise) rotation matrix. |
| public Affine2 | Returns: This matrix for the purpose of chaining.The angle in radians radians)Premultiplies this matrix with a (counter-clockwise) rotation matrix. |
| public Affine2 | Returns: This matrix for the purpose of chaining.The scale in the x-axis. scaleX, float The scale in the y-axis. scaleY)Premultiplies this matrix with a scale matrix. |
| public Affine2 | |
| public Affine2 | Returns: This matrix for the purpose of chaining.The shear in x direction. shearX, float The shear in y direction. shearY)Premultiplies this matrix by a shear matrix. |
| public Affine2 | |
| public Affine2 | 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)Premultiplies this matrix by a translation matrix. |
| public Affine2 | Returns: This matrix for the purpose of chaining.The translation vector. trn)Premultiplies this matrix by a translation matrix. |
| public Affine2 | Returns: This matrix for the purpose of chaining.The angle in degrees degrees)Postmultiplies this matrix with a (counter-clockwise) rotation matrix. |
| public Affine2 | Returns: This matrix for the purpose of chaining.The angle in radians radians)Postmultiplies this matrix with a (counter-clockwise) rotation matrix. |
| public Affine2 | 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 Affine2 | |
| public Affine2 | |
| public Affine2 | |
| public Affine2 | |
| public Affine2 | Returns: This matrix for the purpose of chaining operations.Left matrix. l, Affine2 Right matrix. r)Sets this matrix to the product of two matrices. |
| public Affine2 | 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 Affine2 | Returns: This matrix for the purpose of chaining operations.The angle cosine. cos, float The angle sine. sin)Sets this matrix to a rotation matrix that will rotate any vector in counter-clockwise direction around the z-axis. |
| public Affine2 | 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 Affine2 | 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 Affine2 | Returns: This matrix for the purpose of chaining operations.The scale vector. scale)Sets this matrix to a scaling matrix. |
| public Affine2 | Returns: This matrix for the purpose of chaining operations.The shear in x direction. shearX, float The shear in y direction. shearY)Sets this matrix to a shearing matrix. |
| public Affine2 | Returns: This matrix for the purpose of chaining operations.The shear vector. shear)Sets this matrix to a shearing matrix. |
| public Affine2 | 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 Affine2 | Returns: This matrix for the purpose of chaining operations.The translation vector. trn)Sets this matrix to a translation matrix. |
| public Affine2 | Returns: This matrix for the purpose of chaining operations.The translation in x. x, float The translation in y. y, float The angle in radians. radians, float The scale in y. scaleX, float The scale in x. scaleY)Sets this matrix to a concatenation of translation, rotation and scale. |
| public Affine2 | Returns: This matrix for the purpose of chaining operations.The translation vector. trn, float The angle in radians. radians, Vector2 The scale vector. scale)Sets this matrix to a concatenation of translation, rotation and scale. |
| public Affine2 | Returns: This matrix for the purpose of chaining operations.The translation in x. x, float The translation in y. y, float The angle in degrees. degrees, float The scale in y. scaleX, float The scale in x. scaleY)Sets this matrix to a concatenation of translation, rotation and scale. |
| public Affine2 | Returns: This matrix for the purpose of chaining operations.The translation vector. trn, float The angle in degrees. degrees, Vector2 The scale vector. scale)Sets this matrix to a concatenation of translation, rotation and scale. |
| public Affine2 | Returns: This matrix for the purpose of chaining operations.The translation in x. x, float The translation in y. y, float The scale in y. scaleX, float The scale in x. scaleY)Sets this matrix to a concatenation of translation and scale. |
| public Affine2 | Returns: This matrix for the purpose of chaining operations.The translation vector. trn, Vector2 The scale vector. scale)Sets this matrix to a concatenation of translation and scale. |
| public Affine2 | Returns: This matrix for the purpose of chaining.The shear in x direction. shearX, float The shear in y direction. shearY)Postmultiplies this matrix by a shear matrix. |
| public Affine2 | |
| public String | |
| public Affine2 | 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 Affine2 |
| m00 | back to summary |
|---|---|
| public float m00 | |
| m01 | back to summary |
|---|---|
| public float m01 | |
| m02 | back to summary |
|---|---|
| public float m02 | |
| m10 | back to summary |
|---|---|
| public float m10 | |
| m11 | back to summary |
|---|---|
| public float m11 | |
| m12 | back to summary |
|---|---|
| public float m12 | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| Affine2 | back to summary |
|---|---|
| public Affine2() Constructs an identity matrix. | |
| Affine2 | back to summary |
|---|---|
| public Affine2(Affine2 other) Constructs a matrix from the given affine matrix.
| |
| applyTo | back to summary |
|---|---|
| public void applyTo(Vector2 point) Applies the affine transformation on a vector. | |
| det | back to summary |
|---|---|
| public float det() Calculates the determinant of the matrix.
| |
| getTranslation | back to summary |
|---|---|
| public Vector2 getTranslation(Vector2 position) Get the x-y translation component of the matrix. | |
| idt | back to summary |
|---|---|
| public Affine2 idt() Sets this matrix to the identity matrix
| |
| inv | back to summary |
|---|---|
| public Affine2 inv() Inverts this matrix given that the determinant is != 0.
| |
| isIdt | back to summary |
|---|---|
| public boolean isIdt() Check if this is an indentity matrix.
| |
| isTranslation | back to summary |
|---|---|
| public boolean isTranslation() Check if the this is a plain translation matrix.
| |
| mul | back to summary |
|---|---|
| public Affine2 mul(Affine2 other) Postmultiplies this matrix with the provided matrix and stores the result in this matrix. For example: A.mul(B) results in A := AB | |
| preMul | back to summary |
|---|---|
| public Affine2 preMul(Affine2 other) Premultiplies this matrix with the provided matrix and stores the result in this matrix. For example: A.preMul(B) results in A := BA | |
| preRotate | back to summary |
|---|---|
| public Affine2 preRotate(float degrees) Premultiplies this matrix with a (counter-clockwise) rotation matrix.
| |
| preRotateRad | back to summary |
|---|---|
| public Affine2 preRotateRad(float radians) Premultiplies this matrix with a (counter-clockwise) rotation matrix.
| |
| preScale | back to summary |
|---|---|
| public Affine2 preScale(float scaleX, float scaleY) Premultiplies this matrix with a scale matrix.
| |
| preScale | back to summary |
|---|---|
| public Affine2 preScale(Vector2 scale) Premultiplies this matrix with a scale matrix. | |
| preShear | back to summary |
|---|---|
| public Affine2 preShear(float shearX, float shearY) Premultiplies this matrix by a shear matrix.
| |
| preShear | back to summary |
|---|---|
| public Affine2 preShear(Vector2 shear) Premultiplies this matrix by a shear matrix. | |
| preTranslate | back to summary |
|---|---|
| public Affine2 preTranslate(float x, float y) Premultiplies this matrix by a translation matrix.
| |
| preTranslate | back to summary |
|---|---|
| public Affine2 preTranslate(Vector2 trn) Premultiplies this matrix by a translation matrix. | |
| rotate | back to summary |
|---|---|
| public Affine2 rotate(float degrees) Postmultiplies this matrix with a (counter-clockwise) rotation matrix.
| |
| rotateRad | back to summary |
|---|---|
| public Affine2 rotateRad(float radians) Postmultiplies this matrix with a (counter-clockwise) rotation matrix.
| |
| scale | back to summary |
|---|---|
| public Affine2 scale(float scaleX, float scaleY) Postmultiplies this matrix with a scale matrix.
| |
| scale | back to summary |
|---|---|
| public Affine2 scale(Vector2 scale) Postmultiplies this matrix with a scale matrix. | |
| set | back to summary |
|---|---|
| public Affine2 set(Affine2 other) Copies the values from the provided affine matrix to this matrix. | |
| set | back to summary |
|---|---|
| public Affine2 set(Matrix3 matrix) Copies the values from the provided matrix to this matrix. | |
| set | back to summary |
|---|---|
| public Affine2 set(Matrix4 matrix) Copies the 2D transformation components from the provided 4x4 matrix. The values are mapped as follows:
[ M00 M01 M03 ]
[ M10 M11 M13 ]
[ 0 0 1 ]
| |
| setToProduct | back to summary |
|---|---|
| public Affine2 setToProduct(Affine2 l, Affine2 r) Sets this matrix to the product of two matrices. | |
| setToRotation | back to summary |
|---|---|
| public Affine2 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 Affine2 setToRotation(float cos, float sin) Sets this matrix to a rotation matrix that will rotate any vector in counter-clockwise direction around the z-axis.
| |
| setToRotationRad | back to summary |
|---|---|
| public Affine2 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 Affine2 setToScaling(float scaleX, float scaleY) Sets this matrix to a scaling matrix.
| |
| setToScaling | back to summary |
|---|---|
| public Affine2 setToScaling(Vector2 scale) Sets this matrix to a scaling matrix. | |
| setToShearing | back to summary |
|---|---|
| public Affine2 setToShearing(float shearX, float shearY) Sets this matrix to a shearing matrix.
| |
| setToShearing | back to summary |
|---|---|
| public Affine2 setToShearing(Vector2 shear) Sets this matrix to a shearing matrix. | |
| setToTranslation | back to summary |
|---|---|
| public Affine2 setToTranslation(float x, float y) Sets this matrix to a translation matrix.
| |
| setToTranslation | back to summary |
|---|---|
| public Affine2 setToTranslation(Vector2 trn) Sets this matrix to a translation matrix. | |
| setToTrnRotRadScl | back to summary |
|---|---|
| public Affine2 setToTrnRotRadScl(float x, float y, float radians, float scaleX, float scaleY) Sets this matrix to a concatenation of translation, rotation and scale. It is a more efficient form for:
| |
| setToTrnRotRadScl | back to summary |
|---|---|
| public Affine2 setToTrnRotRadScl(Vector2 trn, float radians, Vector2 scale) Sets this matrix to a concatenation of translation, rotation and scale. It is a more efficient form for:
| |
| setToTrnRotScl | back to summary |
|---|---|
| public Affine2 setToTrnRotScl(float x, float y, float degrees, float scaleX, float scaleY) Sets this matrix to a concatenation of translation, rotation and scale. It is a more efficient form for:
| |
| setToTrnRotScl | back to summary |
|---|---|
| public Affine2 setToTrnRotScl(Vector2 trn, float degrees, Vector2 scale) Sets this matrix to a concatenation of translation, rotation and scale. It is a more efficient form for:
| |
| setToTrnScl | back to summary |
|---|---|
| public Affine2 setToTrnScl(float x, float y, float scaleX, float scaleY) Sets this matrix to a concatenation of translation and scale. It is a more efficient form for:
| |
| setToTrnScl | back to summary |
|---|---|
| public Affine2 setToTrnScl(Vector2 trn, Vector2 scale) Sets this matrix to a concatenation of translation and scale. It is a more efficient form for:
| |
| shear | back to summary |
|---|---|
| public Affine2 shear(float shearX, float shearY) Postmultiplies this matrix by a shear matrix.
| |
| shear | back to summary |
|---|---|
| public Affine2 shear(Vector2 shear) Postmultiplies this matrix by a shear 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 Affine2 translate(float x, float y) Postmultiplies this matrix by a translation matrix.
| |
| translate | back to summary |
|---|---|
| public Affine2 translate(Vector2 trn) Postmultiplies this matrix by a translation matrix. | |