Phaser API Documentation

  Version: 

Member of: Phaser.Geom.Line

<static> NormalY(line)

Description:

The Y value of the normal of the given line. The normal of a line is a vector that points perpendicular from it.

Parameters:

name type description
line Phaser.Geom.Line

The line to calculate the normal of.

Returns:
Description:

The Y value of the normal of the Line.

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