Phaser API Documentation

  Version: 

Member of: Phaser.Math.Vector2

subtract(src)

Description:

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

Parameters:

name type description
src Phaser.Types.Math.Vector2Like

The Vector to subtract from this Vector.

Returns:
Description:

This Vector2.

Since: 3.0.0
Source: src/math/Vector2.js (Line 262)