Phaser API Documentation

  Version: 

Member of: Phaser.Geom.Line

<static> GetNormal(line, [out])

Description:

Calculate the normal of the given line.

The normal of a line is a vector that points perpendicular from it.

Parameters:

name type arguments description
line Phaser.Geom.Line

The line to calculate the normal of.

out object | Phaser.Geom.Point <optional>

An optional point object to store the normal in.

Returns:
Description:

The normal of the Line.

Type:
Since: 3.0.0