MatrixKt

public final class MatrixKt


Summary

Public methods

static final @NonNull Matrix
rotationMatrix(float degrees, float px, float py)

Creates a rotation matrix, defined by a rotation angle in degrees around the pivot point located at the coordinates (px, py).

static final @NonNull Matrix
scaleMatrix(float sx, float sy)

Creates a scale matrix with the scale factor sx and sy respectively on the x and y axis.

static final @NonNull Matrix
MatrixKt.times(Matrix receiver, Matrix m)

Multiplies this Matrix by another matrix and returns the result as a new matrix.

static final @NonNull Matrix
translationMatrix(float tx, float ty)

Creates a translation matrix with the translation amounts tx and ty respectively on the x and y axis.

static final float[]

Returns the 9 values of this Matrix as a new array of floats.

Public methods

rotationMatrix

public static final @NonNull Matrix rotationMatrix(float degrees, float px, float py)

Creates a rotation matrix, defined by a rotation angle in degrees around the pivot point located at the coordinates (px, py).

scaleMatrix

public static final @NonNull Matrix scaleMatrix(float sx, float sy)

Creates a scale matrix with the scale factor sx and sy respectively on the x and y axis.

MatrixKt.times

public static final @NonNull Matrix MatrixKt.times(Matrix receiver, Matrix m)

Multiplies this Matrix by another matrix and returns the result as a new matrix.

translationMatrix

public static final @NonNull Matrix translationMatrix(float tx, float ty)

Creates a translation matrix with the translation amounts tx and ty respectively on the x and y axis.

MatrixKt.values