Matrix3x3.scale()
Scale this matrix by the Vector2 given as parameter
Parameters
Name | Type | Description | |
---|---|---|---|
1 | vector2 | Vector2 |
Return value
Matrix3x3
the Matrix3x3 with its new values
Usage
import {Matrix3x3, Vector2} from '@lcluber/type6js';
let vector = new Vector2(2,2);
let matrix = new Matrix3x3().identity();
matrix.scale(vector);