Transform

sealed class Transform

Represents a transformation. Usually, these will boil down to matrix operations.

Inheritors

Types

Link copied to clipboard
data class InOrder(val transformations: List<Transform>) : Transform

A series of transformations. Remember that transformations are not commutative.

Link copied to clipboard
data class Rotate(val degrees: Float, val pivotX: Float = 0.0f, val pivotY: Float = 0.0f) : Transform

Rotate by degrees. If pivotX or pivotY is specified as non-zero, then the rotation will be centered on that location.

Link copied to clipboard
data class Scale(val horizontal: Float = 1.0f, val vertical: Float = 1.0f, val pivotX: Float = 0.0f, val pivotY: Float = 0.0f) : Transform

Scale by horizontal and vertical factors. If pivotX or pivotY is specified as non-zero, then the scale will be centered on that location.

Link copied to clipboard
data class Skew(val horizontal: Float = 0.0f, val vertical: Float = 0.0f) : Transform

Skew the image by horizontal and vertical.

Link copied to clipboard
data class Translate(val horizontal: Float = 0.0f, val vertical: Float = 0.0f) : Transform

Translate by horizontal and vertical.