translation4
translation4(
vector
):m4x4f
Defined in: packages/typegpu/src/data/matrix.ts:600
Creates a 4-by-4 matrix which translates by the given vector v.
Parameters
Section titled “Parameters”vector
Section titled “vector”The vector by which to translate.
Returns
Section titled “Returns”The translation matrix.