Package | Description |
---|---|
com.badlogic.gdx.graphics | |
com.badlogic.gdx.graphics.g3d.shaders | |
com.badlogic.gdx.graphics.glutils | |
com.badlogic.gdx.math | |
com.badlogic.gdx.utils |
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.
|
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(String name,
Matrix3 matrix)
Sets the uniform matrix with the given name.
|
void |
ShaderProgram.setUniformMatrix(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.mulLeft(Matrix3 m)
Premultiplies 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.rotateRad(float radians)
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(Affine2 affine)
Copies the values from the provided affine matrix to this matrix.
|
Matrix3 |
Matrix3.set(float[] values)
Sets the matrix to the given matrix as a float array.
|
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.setToRotation(Vector3 axis,
float degrees) |
Matrix3 |
Matrix3.setToRotation(Vector3 axis,
float cos,
float sin) |
Matrix3 |
Matrix3.setToRotationRad(float radians)
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.setToScaling(Vector2 scale)
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 |
---|---|
Vector3 |
Vector3.mul(Matrix3 matrix)
Left-multiplies the vector by the given matrix.
|
Vector2 |
Vector2.mul(Matrix3 mat)
Left-multiplies this vector by the given matrix
|
Matrix3 |
Matrix3.mul(Matrix3 m)
Postmultiplies this matrix with the provided matrix and stores the result in this matrix.
|
Matrix3 |
Matrix3.mulLeft(Matrix3 m)
Premultiplies this matrix with the provided matrix and stores the result in this matrix.
|
Matrix4 |
Matrix4.set(Matrix3 mat)
Sets this matrix to the given 3x3 matrix.
|
Matrix3 |
Matrix3.set(Matrix3 mat)
Copies the values from the provided matrix to this matrix.
|
Affine2 |
Affine2.set(Matrix3 matrix)
Copies the values from the provided matrix to this matrix.
|
Quaternion |
Quaternion.setFromMatrix(boolean normalizeAxes,
Matrix3 matrix)
Sets the Quaternion from the given matrix, optionally removing any scaling.
|
Quaternion |
Quaternion.setFromMatrix(Matrix3 matrix)
Sets the Quaternion from the given rotation matrix, which must not contain scaling.
|
Vector3 |
Vector3.traMul(Matrix3 matrix)
Multiplies the vector by the transpose of the given matrix.
|
Constructor and Description |
---|
Matrix3(Matrix3 matrix) |
Modifier and Type | Method and Description |
---|---|
static void |
BufferUtils.transform(Buffer data,
int dimensions,
int strideInBytes,
int count,
Matrix3 matrix)
Multiply float vector components within the buffer with the specified matrix.
|
static void |
BufferUtils.transform(Buffer data,
int dimensions,
int strideInBytes,
int count,
Matrix3 matrix,
int offset)
Multiply float vector components within the buffer with the specified matrix.
|
static void |
BufferUtils.transform(float[] data,
int dimensions,
int strideInBytes,
int count,
Matrix3 matrix)
Multiply float vector components within the buffer with the specified matrix.
|
static void |
BufferUtils.transform(float[] data,
int dimensions,
int strideInBytes,
int count,
Matrix3 matrix,
int offset)
Multiply float vector components within the buffer with the specified matrix.
|
Copyright © 2015. All rights reserved.