Phaser API Documentation

  Version: 
<static> InCenter(triangle, [out])

Description:

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.

Parameters:

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.

Returns:
Description:

Point (x, y) of the center pixel of the triangle.

Since: 3.0.0