Skip to content

rotateX4

const rotateX4: DualFn<(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.

The matrix to be modified.

The angle by which to rotate (in radians).

The rotated matrix.

© Software Mansion 2026. All trademarks and copyrights belong to their respective owners. Read about our Privacy Policy.