Phaser API Documentation

  Version: 

Member of: Phaser.Geom.Line

<static> NormalX(line)

Description:

Returns the x component of the normal vector of the given line.

Parameters:

name type description
line Phaser.Geom.Line

The Line object to get the normal value from.

Returns:
Description:

The x component of the normal vector of the line.

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