Skip to content

Sign up to be notified when the ShaderHunt platform is available, along with interactive examples teaching TypeGPU from the ground up.

rotateZ4

rotateZ4(matrix, angle): m4x4f

Defined in: packages/typegpu/src/std/matrix.ts:100

Rotates the given 4-by-4 matrix around the z-axis by the given angle.

m4x4f

The matrix to be modified.

number

The angle by which to rotate (in radians).

m4x4f

The rotated matrix.