Phaser API Documentation

  Version: 

Member of: Phaser.Curves.Curve

getUtoTmapping(u, distance, [divisions])

Description:

Given u ( 0 .. 1 ), get a t to find p. This gives you points which are equidistant.

Parameters:

name type arguments description
u number

A float between 0 and 1.

distance number

The distance, in pixels.

divisions number <optional>

Optional amount of divisions.

Returns:
Description:

The equidistant value.

Type:
  • number
Examples:
Since: 3.0.0
Source: src/curves/Curve.js (Line 513)