public class RemoteMatrix3x3 internal constructor(
private val arrayProvider: (creationState: RemoteComposeCreationState) -> FloatArray,
cacheKey: RemoteStateCacheKey,
) : BaseRemoteState<Any>(cacheKey)
Represents a 3x3 transformation matrix.
Properties
constantValueOrNull
override val constantValueOrNull: Any?
Functions
times
public operator fun times(v: RemoteMatrix3x3): RemoteMatrix3x3
Creates a new RemoteMatrix3x3 that represents the multiplication of this matrix by another.
Parameters
| v | The RemoteMatrix3x3 to multiply with this one (this * v). |
Return
A new RemoteMatrix3x3 representing the multiplication.
Members
Companion
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
public companion object
Functions
createIdentity
public fun createIdentity(): RemoteMatrix3x3
Creates a RemoteMatrix3x3 representing an identity matrix.
createRotate
public fun createRotate(angle: RemoteFloat): RemoteMatrix3x3
Creates a RemoteMatrix3x3 that rotates around the Z-axis.
Parameters
| angle | The angle of rotation. |
createTranslateX
public fun createTranslateX(x: RemoteFloat): RemoteMatrix3x3
Creates a RemoteMatrix3x3 that translates along the X-axis.
Parameters
| x | The distance to translate along the X-axis. |
createTranslateY
public fun createTranslateY(y: RemoteFloat): RemoteMatrix3x3
Creates a RemoteMatrix3x3 that translates along the Y-axis.
Parameters
| y | The distance to translate along the Y-axis. |
createTranslateXy
public fun createTranslateXy(x: RemoteFloat, y: RemoteFloat): RemoteMatrix3x3
Creates a RemoteMatrix3x3 that translates along the X-axis and the Y-axis.
Parameters
| x | The distance to translate along the X-axis. |
| y | The distance to translate along the Y-axis. |
createScaleX
public fun createScaleX(scale: RemoteFloat): RemoteMatrix3x3
Creates a RemoteMatrix3x3 that scales along the X-axis.
Parameters
| scale | The scaling factor. |
createScaleY
public fun createScaleY(scale: RemoteFloat): RemoteMatrix3x3
Creates a RemoteMatrix3x3 that scales along the Y-axis.
Parameters
| scale | The scaling factor. |
createRotationAround
public fun createRotationAround(
angle: RemoteFloat,
centerX: RemoteFloat,
centerY: RemoteFloat,
): RemoteMatrix3x3
Creates a RemoteMatrix3x3 that rotates around a pivot point on the Z-plane.
Parameters
| angle | The angle of rotation. |
| centerX | The X-coordinate of the pivot point. |
| centerY | The Y-coordinate of the pivot point. |