Phaser API Documentation

  Version: 
add(v)

Description:

Add a given Quaternion or Vector to this Quaternion. Addition is component-wise.

Parameters:

name type description
v Phaser.Math.Quaternion | Phaser.Math.Vector4

The Quaternion or Vector to add to this Quaternion.

Returns:
Description:

This Quaternion.

Examples:
Since: 3.0.0
Source: src/math/Quaternion.js (Line 244)