Phaser API Documentation

  Version: 

Member of: Phaser.Geom.Ellipse

getRandomPoint([point])

Description:

Returns a uniformly distributed random point from anywhere within the given Ellipse.

Parameters:

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

A Point or point-like object to set the random x and y values in.

Returns:
Description:

A Point object with the random values set in the x and y properties.

Type:
Since: 3.0.0