Phaser API Documentation

  Version: 
<static> GetPoint(triangle, position, [out])

Description:

Returns a Point from around the perimeter of a Triangle.

Parameters:

name type arguments description
triangle Phaser.Geom.Triangle

The Triangle to get the point on its perimeter from.

position number

The position along the perimeter of the triangle. A value between 0 and 1.

out object | Phaser.Geom.Point <optional>

An option Point, or Point-like object to store the value in. If not given a new Point will be created.

Returns:
Description:

A Point object containing the given position from the perimeter of the triangle.

Type:
Since: 3.0.0