Skip to content

Documentation / @debuffjp/core / approach

Function: approach() ​

approach(current, target, maxDelta): number

Defined in: math.ts:8

Move current toward target by at most maxDelta.

Parameters ​

current ​

number

target ​

number

maxDelta ​

number

Returns ​

number