Phaser API Documentation

  Version: 

Member of: Phaser.Geom.Ellipse

<static> Random(ellipse, [out])

Description:

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

Parameters:

name type arguments description
ellipse Phaser.Geom.Ellipse

The Ellipse to get a random point from.

out 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
Source: src/geom/ellipse/Random.js (Line 9)