Rotate

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.

Constructors

Link copied to clipboard
constructor(degrees: Float, pivotX: Float = 0.0f, pivotY: Float = 0.0f)

Properties

Link copied to clipboard
Link copied to clipboard
val pivotX: Float = 0.0f
Link copied to clipboard
val pivotY: Float = 0.0f

Functions

Link copied to clipboard

Converts a pivoted rotate into an ordered transformation of translate, rotate, translate.