fun rotate(result: ZMatrix4, q: ZQuaternion)(source)

Rotates the given ZMatrix4 result by the specified ZQuaternion.

Parameters

result

The ZMatrix4 to be rotated. This matrix will be modified to contain the result of the rotation.

q

The ZQuaternion representing the rotation to be applied.