Phaser API Documentation

  Version: 
<static> PerimeterPoint(rectangle, angle, [out])

Description:

Returns a Point from the perimeter of a Rectangle based on the given angle.

Parameters:

name type arguments description
rectangle Phaser.Geom.Rectangle

The Rectangle to get the perimeter point from.

angle number

The angle of the point, in degrees.

out Phaser.Geom.Point <optional>

The Point object to store the position in. If not given, a new Point instance is created.

Returns:
Description:

A Point object holding the coordinates of the Rectangle perimeter.

Since: 3.0.0