Phaser API Documentation

  Version: 

Member of: Phaser.Curves.Line

getTangent()

Description:

Gets the slope of the line as a unit vector.

Returns:
Description:

The tangent vector.

Since: 3.0.0
Source: src/curves/LineCurve.js (Line 180)