Phaser API Documentation

  Version: 
dot(v)

Description:

Calculate the dot product of this Quaternion and the given Quaternion or Vector.

Parameters:

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

The Quaternion or Vector to dot product with this Quaternion.

Returns:
Description:

The dot product of this Quaternion and the given Quaternion or Vector.

Type:
  • number
Examples:
Since: 3.0.0
Source: src/math/Quaternion.js (Line 377)