Skip to content
FutureBlitz

    Install

    Import std.math.scalar

    PingPong

    std.math.scalar

    function

    @PanicsAtCaller Public Function PingPong<T>(value: T, length: T): T

    The value going from 0 up to length and back down, over and over: PingPong(3, 2) is 1. A negative length panics. It's worked out in a UInt64, by whole lengths, so no length of any of the eight types overflows.

    std/math/scalar.fb, line 255

    function

    @PanicsAtCaller Public Function PingPong<T>(value: T, length: T): T

    The value going from 0 up to length and back down, over and over: PingPong(3.0, 2.0) is 1. A negative or NaN length panics.

    std/math/scalar.fb, line 275

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