Phaser API Documentation

  Version: 

Member of: Phaser.Math.Vector2

cross(src)

Description:

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

Parameters:

name type description
src Phaser.Types.Math.Vector2Like

The Vector2 to cross with this Vector2.

Returns:
Description:

The cross product of this Vector and the given Vector.

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