Phaser API Documentation

  Version: 

Member of: Phaser.Geom.Line

getRandomPoint([point])

Description:

Get a random Point on the Line.

Parameters:

name type arguments description
point object | Phaser.Geom.Point <optional>

An instance of a Point to be modified.

Returns:
Description:

A random Point on the Line.

Since: 3.0.0
Source: src/geom/line/Line.js (Line 129)