Phaser API Documentation

  Version: 

Member of: Phaser.Geom.Line

<static> CenterOn(line, x, y)

Description:

Center a line on the given coordinates.

Parameters:

name type description
line Phaser.Geom.Line

The line to center.

x number

The horizontal coordinate to center the line on.

y number

The vertical coordinate to center the line on.

Returns:
Description:

The centered line.

Since: 3.0.0
Source: src/geom/line/CenterOn.js (Line 8)