Skip to content

translate4

translate4(matrix, vector): m4x4f

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

Translates the given 4-by-4 matrix by the given vector.

m4x4f

The matrix to be modified.

v3f

The vector by which to translate the matrix.

m4x4f

The translated matrix.