Phaser API Documentation

  Version: 
getTangentAt(u, [out])

Description:

Get a unit vector tangent at a relative position on the curve, by arc length.

Parameters:

name type arguments description
u number

The relative position on the curve, [0..1].

out Phaser.Math.Vector2 <optional>

A vector to store the result in.

Returns:
Description:

The tangent vector.

Examples:
Since: 3.0.0
Source: src/curves/Curve.js (Line 472)