Matrix4x4.rotateZ()

Rotate this matrix on the Z axis by the angle given as parameter

Parameters

NameTypeDescription
1anglenumberthe Matrix4x4 with its new values

Return value

Matrix4x4

Usage

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

let vector = new Vector3(2,2,2);
let matrix = new Matrix4x4().identity().scale(vector);
matrix.rotateZ(2);