Phaser API Documentation

  Version: 

Member of: Phaser.Geom.Line

<static> GetMidPoint(line, [out])

Description:

Get the midpoint of the given line.

Parameters:

name type arguments description
line Phaser.Geom.Line

The line to get the midpoint of.

out object | Phaser.Geom.Point <optional>

An optional point object to store the midpoint in.

Returns:
Description:

The midpoint of the Line.

Type:
Since: 3.0.0