Skip to content
FutureBlitz

    Install

    Import std.math.scalar

    MoveTowards

    std.math.scalar

    function

    Public Function MoveTowards<T>(current: T, target: T, maxDelta: T): T

    Current moved toward target by maxDelta, or to target when it's no further: a negative maxDelta moves it away.

    std/math/scalar.fb, line 287

    Report an issue with this page or with FutureBlitz on GitHub.