Phaser API Documentation

  Version: 

Member of: Phaser.Math.Vector3

subtract(v)

Description:

Subtract the given Vector from this Vector. Subtraction is component-wise.

Parameters:

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

The Vector to subtract from this Vector.

Returns:
Description:

This Vector3.

Since: 3.0.0
Source: src/math/Vector3.js (Line 375)