Phaser API Documentation

  Version: 

Member of: Phaser.Geom.Line

<static> PerpSlope(line)

Description:

Calculate the perpendicular slope of the given line.

Parameters:

name type description
line Phaser.Geom.Line

The line to calculate the perpendicular slope of.

Returns:
Description:

The perpendicular slope of the line.

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