Package | Description |
---|---|
com.badlogic.gdx.graphics | |
com.badlogic.gdx.graphics.g3d.shaders | |
com.badlogic.gdx.graphics.glutils | |
com.badlogic.gdx.math |
Modifier and Type | Method and Description |
---|---|
void |
Mesh.transformUV(Matrix3 matrix)
Method to transform the texture coordinates in the mesh.
|
static void |
Mesh.transformUV(Matrix3 matrix,
float[] vertices,
int vertexSize,
int offset,
int start,
int count)
Method to transform the texture coordinates (UV) in the float array.
|
protected void |
Mesh.transformUV(Matrix3 matrix,
int start,
int count) |
Modifier and Type | Method and Description |
---|---|
boolean |
BaseShader.set(int uniform,
Matrix3 value) |
Modifier and Type | Method and Description |
---|---|
void |
ShaderProgram.setUniformMatrix(int location,
Matrix3 matrix) |
void |
ShaderProgram.setUniformMatrix(int location,
Matrix3 matrix,
boolean transpose) |
void |
ShaderProgram.setUniformMatrix(java.lang.String name,
Matrix3 matrix)
Sets the uniform matrix with the given name.
|
void |
ShaderProgram.setUniformMatrix(java.lang.String name,
Matrix3 matrix,
boolean transpose)
Sets the uniform matrix with the given name.
|
Modifier and Type | Method and Description |
---|---|
Matrix3 |
Matrix3.idt()
Sets this matrix to the identity matrix
|
Matrix3 |
Matrix3.inv()
Inverts this matrix given that the determinant is != 0.
|
Matrix3 |
Matrix3.mul(Matrix3 m)
Postmultiplies this matrix with the provided matrix and stores the result in this matrix.
|
Matrix3 |
Matrix3.rotate(float degrees)
Postmultiplies this matrix with a (counter-clockwise) rotation matrix.
|
Matrix3 |
Matrix3.scale(float scaleX,
float scaleY)
Postmultiplies this matrix with a scale matrix.
|
Matrix3 |
Matrix3.scale(Vector2 scale)
Postmultiplies this matrix with a scale matrix.
|
Matrix3 |
Matrix3.scl(float scale)
Scale the matrix in the both the x and y components by the scalar value.
|
Matrix3 |
Matrix3.scl(Vector2 scale)
Scale this matrix using the x and y components of the vector but leave the rest of the matrix alone.
|
Matrix3 |
Matrix3.scl(Vector3 scale)
Scale this matrix using the x and y components of the vector but leave the rest of the matrix alone.
|
Matrix3 |
Matrix3.set(Matrix3 mat)
Copies the values from the provided matrix to this matrix.
|
Matrix3 |
Matrix3.set(Matrix4 mat)
Sets this 3x3 matrix to the top left 3x3 corner of the provided 4x4 matrix.
|
Matrix3 |
Matrix3.setToRotation(float degrees)
Sets this matrix to a rotation matrix that will rotate any vector in counter-clockwise direction around the z-axis.
|
Matrix3 |
Matrix3.setToScaling(float scaleX,
float scaleY)
Sets this matrix to a scaling matrix.
|
Matrix3 |
Matrix3.setToTranslation(float x,
float y)
Sets this matrix to a translation matrix.
|
Matrix3 |
Matrix3.setToTranslation(Vector2 translation)
Sets this matrix to a translation matrix.
|
Matrix3 |
Matrix3.translate(float x,
float y)
Postmultiplies this matrix by a translation matrix.
|
Matrix3 |
Matrix3.translate(Vector2 translation)
Postmultiplies this matrix by a translation matrix.
|
Matrix3 |
Matrix3.transpose()
Transposes the current matrix.
|
Matrix3 |
Matrix3.trn(float x,
float y)
Adds a translational component to the matrix in the 3rd column.
|
Matrix3 |
Matrix3.trn(Vector2 vector)
Adds a translational component to the matrix in the 3rd column.
|
Matrix3 |
Matrix3.trn(Vector3 vector)
Adds a translational component to the matrix in the 3rd column.
|
Modifier and Type | Method and Description |
---|---|
Matrix3 |
Matrix3.mul(Matrix3 m)
Postmultiplies this matrix with the provided matrix and stores the result in this matrix.
|
Vector2 |
Vector2.mul(Matrix3 mat)
Left-multiplies this vector by the given matrix
|
Matrix3 |
Matrix3.set(Matrix3 mat)
Copies the values from the provided matrix to this matrix.
|
Matrix4 |
Matrix4.set(Matrix3 mat)
Sets this matrix to the given 3x3 matrix.
|
Constructor and Description |
---|
Matrix3(Matrix3 matrix) |