Class

RemoteMatrix3x3

Represents a 3x3 transformation matrix.

Source set: Android
public class RemoteMatrix3x3 internal constructor(
    private val arrayProvider: (creationState: RemoteComposeCreationState) -> FloatArray,
    cacheKey: RemoteStateCacheKey,
) : BaseRemoteState<Any>(cacheKey)

Represents a 3x3 transformation matrix.

Properties

constantValueOrNull

Source set: Android
override val constantValueOrNull: Any?

Functions

times

Source set: Android
public operator fun times(other: RemoteMatrix3x3): RemoteMatrix3x3

Creates a new RemoteMatrix3x3 that represents the multiplication of this matrix by another.

Parameters

other The RemoteMatrix3x3 to multiply with this one (this * other).

Return

A new RemoteMatrix3x3 representing the multiplication.

Members

Companion

Source set: Android
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
    public companion object

Functions

createIdentity

Source set: Android
public fun createIdentity(): RemoteMatrix3x3

Creates a RemoteMatrix3x3 representing an identity matrix.

createRotate

Source set: Android
public fun createRotate(angle: RemoteFloat): RemoteMatrix3x3

Creates a RemoteMatrix3x3 that rotates around the Z-axis.

Parameters

angle The angle of rotation.

createTranslateX

Source set: Android
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

Source set: Android
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

Source set: Android
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

Source set: Android
public fun createScaleX(scale: RemoteFloat): RemoteMatrix3x3

Creates a RemoteMatrix3x3 that scales along the X-axis.

Parameters

scale The scaling factor.

createScaleY

Source set: Android
public fun createScaleY(scale: RemoteFloat): RemoteMatrix3x3

Creates a RemoteMatrix3x3 that scales along the Y-axis.

Parameters

scale The scaling factor.

createRotationAround

Source set: Android
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.
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: