Calculates the position of the incenter of a Triangle object. This is the point where its three angle bisectors meet and it's also the center of the incircle, which is the circle inscribed in the triangle.
name | type | arguments | description |
---|---|---|---|
triangle | Phaser.Geom.Triangle |
The Triangle to find the incenter of. |
|
out | Phaser.Geom.Point | <optional> |
An optional Point in which to store the coordinates. |
Point (x, y) of the center pixel of the triangle.