Returns a Point from around the perimeter of a Triangle.
name | type | arguments | description |
---|---|---|---|
triangle | Phaser.Geom.Triangle |
The Triangle to get the point on its perimeter from. |
|
position | number |
The position along the perimeter of the triangle. A value between 0 and 1. |
|
out | object | Phaser.Geom.Point | <optional> |
An option Point, or Point-like object to store the value in. If not given a new Point will be created. |
A Point object containing the given position from the perimeter of the triangle.