Phaser API Documentation

  Version: 

Member of: Phaser.Geom.Line

<static> Slope(line)

Description:

Calculate the slope of the given line.

Parameters:

name type description
line Phaser.Geom.Line

The line to calculate the slope of.

Returns:
Description:

The slope of the line.

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