Phaser API Documentation

  Version: 

Member of: Phaser.Geom.Line

<static> Width(line)

Description:

Calculate the width of the given line.

Parameters:

name type description
line Phaser.Geom.Line

The line to calculate the width of.

Returns:
Description:

The width of the line.

Type:
  • number
Since: 3.0.0
Source: src/geom/line/Width.js (Line 7)