preRotate

fun FloatArray.preRotate(degrees: Float, px: Float, py: Float)

Preconcats the matrix with the specified rotation. M' = M * R(degrees, px, py)

The pivot point is the coordinate that should remain unchanged by the specified transformation.

Parameters

matrix

the matrix to rotate

degrees

the rotation degrees

px

px of pivot point at (px, py)

py

py of pivot point at (px, py)