Phaser API Documentation

  Version: 

Member of: Phaser.Geom.Line

<static> Random(line, [out])

Description:

Returns a random point on a given Line.

Parameters:

name type arguments description
line Phaser.Geom.Line

The Line to calculate the random Point on.

out object | Phaser.Geom.Point <optional>

An instance of a Point to be modified.

Returns:
Description:

A random Point on the Line.

Type:
Since: 3.0.0
Source: src/geom/line/Random.js (Line 9)