Phaser API Documentation

  Version: 

Member of: Phaser.Math.Vector4

add(v)

Description:

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

Parameters:

name type description
v Phaser.Math.Vector2 | Phaser.Math.Vector3 | Phaser.Math.Vector4

The Vector to add to this Vector.

Returns:
Description:

This Vector4.

Since: 3.0.0
Source: src/math/Vector4.js (Line 173)