Phaser API Documentation

  Version: 

Member of: Phaser.Geom.Circle

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

Description:

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

Parameters:

name type arguments description
circle Phaser.Geom.Circle

The Circle to get the circumference point on.

angle number

The angle from the center of the Circle 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