Returns a Point from the perimeter of a Rectangle based on the given angle.
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. |
A Point object holding the coordinates of the Rectangle perimeter.