Skip to content

rotateX4

const rotateX4: DualFn<(matrix, angle) => m4x4f>

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

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

The matrix to be modified.

The angle by which to rotate (in radians).

The rotated matrix.