Phaser API Documentation

  Version: 

Member of: Phaser.Geom.Ellipse

<static> CircumferencePoint(ellipse, angle, [out])

Description:

Returns a Point object containing the coordinates of a point on the circumference of the Ellipse based on the given angle.

Parameters:

name type arguments description
ellipse Phaser.Geom.Ellipse

The Ellipse to get the circumference point on.

angle number

The angle from the center of the Ellipse to the circumference to return the point from. Given in radians.

out object | Phaser.Geom.Point <optional>

A Point, or point-like object, to store the results in. If not given a Point will be created.

Returns:
Description:

A Point object where the x and y properties are the point on the circumference.

Type:
Since: 3.0.0