Phaser API Documentation

  Version: 

Member of: Phaser.Curves.Path

getEndPoint([out])

Description:

Returns the ending point of the Path.

A Path's ending point is equivalent to the ending point of the last Curve in the Path. For an empty Path, the ending point is at the Path's defined #startPoint.

Parameters:

name type arguments description
out Phaser.Math.Vector2 <optional>

The object to store the point in.

Returns:
Description:

The modified out object, or a new Vector2 if none was provided.

Since: 3.0.0
Source: src/curves/path/Path.js (Line 472)