rotateMatrix

fun rotateMatrix(firstPoint: Offset, lastPoint: Offset): Matrix

Creates a rotation transformation matrix based on two given points.

Return

A transformation matrix with applied rotation and translation based on the given points.

Parameters

firstPoint

The first reference point.

lastPoint

The second point used to determine the rotation angle.