Skip to content

rotateX4

rotateX4(matrix, angle): m4x4f

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

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

m4x4f

The matrix to be modified.

number

The angle by which to rotate (in radians).

m4x4f

The rotated matrix.