Matrix3x3.translate()

Translate this matrix by the Vector2 given as parameter

Parameters

NameTypeDescription
1vector2Vector2

Return value

Matrix3x3

the Matrix3x3 with its new values

Usage

import {Matrix3x3, Vector2} from '@lcluber/type6js';

let vector = new Vector2(3,2);
let matrix = new Matrix3x3();
matrix.translate(vector);