Package | Description |
---|---|
com.badlogic.gdx.graphics.g2d | |
com.badlogic.gdx.math |
Modifier and Type | Method and Description |
---|---|
void |
SpriteBatch.draw(TextureRegion region,
float width,
float height,
Affine2 transform) |
void |
PolygonSpriteBatch.draw(TextureRegion region,
float width,
float height,
Affine2 transform) |
void |
CpuSpriteBatch.draw(TextureRegion region,
float width,
float height,
Affine2 transform) |
void |
Batch.draw(TextureRegion region,
float width,
float height,
Affine2 transform)
Draws a rectangle transformed by the given matrix.
|
void |
CpuSpriteBatch.setTransformMatrix(Affine2 transform)
Sets the transform matrix to be used by this Batch.
|
Modifier and Type | Method and Description |
---|---|
Affine2 |
Affine2.idt()
Sets this matrix to the identity matrix
|
Affine2 |
Affine2.inv()
Inverts this matrix given that the determinant is != 0.
|
Affine2 |
Affine2.mul(Affine2 other)
Postmultiplies this matrix with the provided matrix and stores the result in this matrix.
|
Affine2 |
Affine2.preMul(Affine2 other)
Premultiplies this matrix with the provided matrix and stores the result in this matrix.
|
Affine2 |
Affine2.preRotate(float degrees)
Premultiplies this matrix with a (counter-clockwise) rotation matrix.
|
Affine2 |
Affine2.preRotateRad(float radians)
Premultiplies this matrix with a (counter-clockwise) rotation matrix.
|
Affine2 |
Affine2.preScale(float scaleX,
float scaleY)
Premultiplies this matrix with a scale matrix.
|
Affine2 |
Affine2.preScale(Vector2 scale)
Premultiplies this matrix with a scale matrix.
|
Affine2 |
Affine2.preShear(float shearX,
float shearY)
Premultiplies this matrix by a shear matrix.
|
Affine2 |
Affine2.preShear(Vector2 shear)
Premultiplies this matrix by a shear matrix.
|
Affine2 |
Affine2.preTranslate(float x,
float y)
Premultiplies this matrix by a translation matrix.
|
Affine2 |
Affine2.preTranslate(Vector2 trn)
Premultiplies this matrix by a translation matrix.
|
Affine2 |
Affine2.rotate(float degrees)
Postmultiplies this matrix with a (counter-clockwise) rotation matrix.
|
Affine2 |
Affine2.rotateRad(float radians)
Postmultiplies this matrix with a (counter-clockwise) rotation matrix.
|
Affine2 |
Affine2.scale(float scaleX,
float scaleY)
Postmultiplies this matrix with a scale matrix.
|
Affine2 |
Affine2.scale(Vector2 scale)
Postmultiplies this matrix with a scale matrix.
|
Affine2 |
Affine2.set(Affine2 other)
Copies the values from the provided affine matrix to this matrix.
|
Affine2 |
Affine2.set(Matrix3 matrix)
Copies the values from the provided matrix to this matrix.
|
Affine2 |
Affine2.set(Matrix4 matrix)
Copies the 2D transformation components from the provided 4x4 matrix.
|
Affine2 |
Affine2.setToProduct(Affine2 l,
Affine2 r)
Sets this matrix to the product of two matrices.
|
Affine2 |
Affine2.setToRotation(float degrees)
Sets this matrix to a rotation matrix that will rotate any vector in counter-clockwise direction around the z-axis.
|
Affine2 |
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.
|
Affine2 |
Affine2.setToRotationRad(float radians)
Sets this matrix to a rotation matrix that will rotate any vector in counter-clockwise direction around the z-axis.
|
Affine2 |
Affine2.setToScaling(float scaleX,
float scaleY)
Sets this matrix to a scaling matrix.
|
Affine2 |
Affine2.setToScaling(Vector2 scale)
Sets this matrix to a scaling matrix.
|
Affine2 |
Affine2.setToShearing(float shearX,
float shearY)
Sets this matrix to a shearing matrix.
|
Affine2 |
Affine2.setToShearing(Vector2 shear)
Sets this matrix to a shearing matrix.
|
Affine2 |
Affine2.setToTranslation(float x,
float y)
Sets this matrix to a translation matrix.
|
Affine2 |
Affine2.setToTranslation(Vector2 trn)
Sets this matrix to a translation matrix.
|
Affine2 |
Affine2.setToTrnRotRadScl(float x,
float y,
float radians,
float scaleX,
float scaleY)
Sets this matrix to a concatenation of translation, rotation and scale.
|
Affine2 |
Affine2.setToTrnRotRadScl(Vector2 trn,
float radians,
Vector2 scale)
Sets this matrix to a concatenation of translation, rotation and scale.
|
Affine2 |
Affine2.setToTrnRotScl(float x,
float y,
float degrees,
float scaleX,
float scaleY)
Sets this matrix to a concatenation of translation, rotation and scale.
|
Affine2 |
Affine2.setToTrnRotScl(Vector2 trn,
float degrees,
Vector2 scale)
Sets this matrix to a concatenation of translation, rotation and scale.
|
Affine2 |
Affine2.setToTrnScl(float x,
float y,
float scaleX,
float scaleY)
Sets this matrix to a concatenation of translation and scale.
|
Affine2 |
Affine2.setToTrnScl(Vector2 trn,
Vector2 scale)
Sets this matrix to a concatenation of translation and scale.
|
Affine2 |
Affine2.shear(float shearX,
float shearY)
Postmultiplies this matrix by a shear matrix.
|
Affine2 |
Affine2.shear(Vector2 shear)
Postmultiplies this matrix by a shear matrix.
|
Affine2 |
Affine2.translate(float x,
float y)
Postmultiplies this matrix by a translation matrix.
|
Affine2 |
Affine2.translate(Vector2 trn)
Postmultiplies this matrix by a translation matrix.
|
Modifier and Type | Method and Description |
---|---|
Affine2 |
Affine2.mul(Affine2 other)
Postmultiplies this matrix with the provided matrix and stores the result in this matrix.
|
Affine2 |
Affine2.preMul(Affine2 other)
Premultiplies this matrix with the provided matrix and stores the result in this matrix.
|
Matrix4 |
Matrix4.set(Affine2 affine)
Sets this matrix to the given affine matrix.
|
Matrix3 |
Matrix3.set(Affine2 affine)
Copies the values from the provided affine matrix to this matrix.
|
Affine2 |
Affine2.set(Affine2 other)
Copies the values from the provided affine matrix to this matrix.
|
Matrix4 |
Matrix4.setAsAffine(Affine2 affine)
Assumes that this matrix is a 2D affine transformation, copying only the relevant components.
|
Affine2 |
Affine2.setToProduct(Affine2 l,
Affine2 r)
Sets this matrix to the product of two matrices.
|
Constructor and Description |
---|
Affine2(Affine2 other)
Constructs a matrix from the given affine matrix.
|
Copyright © 2017. All rights reserved.