Phaser API Documentation

  Version: 
copy(src)

Description:

Copy the components of a given Quaternion or Vector into this Quaternion.

Parameters:

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

The Quaternion or Vector to copy the components from.

Returns:
Description:

This Quaternion.

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