Matrix
inline class Matrix
kotlin.Any | |
↳ | androidx.compose.ui.graphics.Matrix |
Summary
Constants | |
---|---|
const Int |
Index of the flattened array that represents the perspective factor along the X axis |
const Int |
Index of the flattened array that represents the perspective factor along the Y axis |
const Int |
Index of the flattened array that represents the perspective factor along the Z axis |
const Int |
Index of the flattened array that represents the scale factor along the X axis |
const Int |
Index of the flattened array that represents the scale factor along the Y axis |
const Int |
Index of the flattened array that represents the scale factor along the Z axis |
const Int |
Index of the flattened array that represents the skew factor along the X axis |
const Int |
Index of the flattened array that represents the skew factor along the Y axis |
const Int |
Index of the flattened array that represents the translation along the X axis |
const Int |
Index of the flattened array that represents the translation along the Y axis |
const Int |
Index of the flattened array that represents the translation along the Z axis |
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 |
Constants
Perspective0
const val Perspective0: Int
Index of the flattened array that represents the perspective factor along the X axis
Value: 3