Ellipse#random()

random(out) → {Phaser.Point}

Returns a uniformly distributed random point from anywhere within this Ellipse.

Parameters
Name Type Argument Description
out Phaser.Point | object <optional>

A Phaser.Point, or any object with public x/y properties, that the values will be set in.
If no object is provided a new Phaser.Point object will be created. In high performance areas avoid this by re-using an existing object.

Returns

An object containing the random point in its x and y properties.

Source code: geom/Ellipse.js (Line 152)
doc_phaser
2017-02-14 10:45:34
Comments
Leave a Comment

Please login to continue.