makeRotate

Creates a Matrix33 to rotate by |deg| about a pivot point at (0, 0).

Return

Matrix33 with rotation

Parameters

deg

rotation angle in degrees (positive rotates clockwise)


fun makeRotate(deg: Float, pivot: Point): Matrix33

Creates a Matrix33 to rotate by |deg| about a pivot point at pivot.

Return

Matrix33 with rotation

Parameters

deg

rotation angle in degrees (positive rotates clockwise)

pivot

pivot point


fun makeRotate(deg: Float, pivotx: Float, pivoty: Float): Matrix33

Creates a Matrix33 to rotate by |deg| about a pivot point at (pivotx, pivoty).

Return

Matrix33 with rotation

Parameters

deg

rotation angle in degrees (positive rotates clockwise)

pivotx

x-coord of pivot

pivoty

y-coord of pivot