Phaser API Documentation

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

Description:

Computes the circumcentre of a triangle. The circumcentre is the centre of the circumcircle, the smallest circle which encloses the triangle. It is also the common intersection point of the perpendicular bisectors of the sides of the triangle, and is the only point which has equal distance to all three vertices of the triangle.

Parameters:

name type arguments description
triangle Phaser.Geom.Triangle

The Triangle to get the circumcenter of.

out Phaser.Math.Vector2 <optional>

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

Returns:
Description:

A Vector2 object holding the coordinates of the circumcenter of the Triangle.

Since: 3.0.0