Phaser API Documentation

  Version: 

Member of: Phaser.Geom.Ellipse

<static> GetPoint(ellipse, position, [out])

Description:

Returns a Point object containing the coordinates of a point on the circumference of the Ellipse based on the given angle normalized to the range 0 to 1. I.e. a value of 0.5 will give the point at 180 degrees around the circle.

Parameters:

name type arguments description
ellipse Phaser.Geom.Ellipse

The Ellipse to get the circumference point on.

position number

A value between 0 and 1, where 0 equals 0 degrees, 0.5 equals 180 degrees and 1 equals 360 around the ellipse.

out object | Phaser.Geom.Point <optional>

An object to store the return values in. If not given a Point object will be created.

Returns:
Description:

A Point, or point-like object, containing the coordinates of the point around the ellipse.

Type:
Since: 3.0.0