Phaser API Documentation

  Version: 

Member of: Phaser.Math.Vector2

dot(src)

Description:

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

Parameters:

name type description
src Phaser.Types.Math.Vector2Like

The Vector2 to dot product with this Vector2.

Returns:
Description:

The dot product of this Vector and the given Vector.

Type:
  • number
Since: 3.0.0
Source: src/math/Vector2.js (Line 508)