rotate

inline fun rotate(degrees: Float = 0.0f, pivot: Point = Point(0f, 0f))

Postconcats the current transform with the specified rotation.

M' = R(degrees, pivotX, pivotY) * M

Parameters

degrees

The rotation degrees

pivot

The point around which scale will be applied