Matrix3x3.rotate()
Rotate this matrix on the X axis by the angle given as parameter
Parameters
Name | Type | Description | |
---|---|---|---|
1 | angle | number |
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().scale(vector);
matrix.rotate(2);