Matrix
inline class Matrix
kotlin.Any | |
↳ | androidx.compose.ui.graphics.Matrix |
Summary
Public constructors | |
---|---|
<init>(values: FloatArray = floatArrayOf(
1f, 0f, 0f, 0f,
0f, 1f, 0f, 0f,
0f, 0f, 1f, 0f,
0f, 0f, 0f, 1f
)) |
Public methods | |
---|---|
operator Float | |
Unit |
invert() Invert |
Offset |
Does the 3D transform on point and returns the |
Rect |
Does a 3D transform on rect and returns its bounds after the transform. |
Unit |
map(rect: MutableRect) Does a 3D transform on rect, transforming rect with the results. |
Unit |
reset() Resets the |
Unit |
Applies a degrees rotation around X to |
Unit |
Applies a degrees rotation around Y to |
Unit |
Applies a degrees rotation around Z to |
Unit | |
operator Unit | |
Unit |
Sets the entire matrix to the matrix in matrix. |
operator Unit |
timesAssign(m: Matrix) Multiply this matrix by m and assign the result to this matrix. |
String |
toString() |
Unit |
Extension functions | ||||
---|---|---|---|---|
From androidx.compose.ui.graphics
|
Properties | |
---|---|
FloatArray |
Public constructors
<init>
Matrix(values: FloatArray = floatArrayOf( 1f, 0f, 0f, 0f, 0f, 1f, 0f, 0f, 0f, 0f, 1f, 0f, 0f, 0f, 0f, 1f ))
Public methods
map
fun map(point: Offset): Offset
Does the 3D transform on point and returns the x
and y
values in an Offset.
map
fun map(rect: Rect): Rect
Does a 3D transform on rect and returns its bounds after the transform.
map
fun map(rect: MutableRect): Unit
Does a 3D transform on rect, transforming rect with the results.
timesAssign
operator fun timesAssign(m: Matrix): Unit
Multiply this matrix by m and assign the result to this matrix.
toString
fun toString(): String
Properties
values
val values: FloatArray