Circle.circumferencePoint()

<static> circumferencePoint(a, angle, asDegrees, out) → {Phaser.Point}

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

Parameters
Name Type Argument Default Description
a Phaser.Circle

The first Circle object.

angle number

The angle in radians (unless asDegrees is true) to return the point from.

asDegrees boolean <optional>
false

Is the given angle in radians (false) or degrees (true)?

out Phaser.Point <optional>

An optional Point object to put the result in to. If none specified a new Point object will be created.

Returns

The Point object holding the result.

Source code: geom/Circle.js (Line 510)
doc_phaser
2017-02-14 10:41:32
Comments
Leave a Comment

Please login to continue.