Lines Matching refs:Matrix
21 import android.graphics.Matrix
24 * Multiplies this [Matrix] by another matrix and returns the result as
27 inline operator fun Matrix.times(m: Matrix) = Matrix(this).apply { preConcat(m) }
30 * Returns the 9 values of this [Matrix] as a new array of floats.
32 inline fun Matrix.values() = FloatArray(9).apply { getValues(this) }
38 fun translationMatrix(tx: Float = 0.0f, ty: Float = 0.0f) = Matrix().apply { setTranslate(tx, ty) }
44 fun scaleMatrix(sx: Float = 1.0f, sy: Float = 1.0f) = Matrix().apply { setScale(sx, sy) }
51 Matrix().apply { setRotate(degrees, px, py) }