Matrix4x4.translate()

Translate this matrix by the Vector3 given as parameter

Parameters

NameTypeDescription
1vector3Vector3

Return value

Matrix4x4

the Matrix4x4 with its new values

Usage

import {Matrix4x4, Vector3} from '@lcluber/type6js';

let vector = new Vector3(3,2,1);
let matrix = new Matrix4x4();
matrix.translate(vector);