Phaser API Documentation

  Version: 

Member of: Phaser.Math.Matrix4

rotate(rad, axis)

Description:

Apply a rotation transformation to this Matrix.

Parameters:

name type description
rad number

The angle in radians to rotate by.

axis Phaser.Math.Vector3

The axis to rotate upon.

Returns:
Description:

This Matrix4.

Since: 3.0.0
Source: src/math/Matrix4.js (Line 846)