Bitbybit Docs
    Preparing search index...

    Class PingPongDto (Inputs.Math)

    A running value and a length for math.pingPong, which bounces the value between 0 and the length.

    Index

    Constructors

    Properties

    Constructors

    • Parameters

      • Optionalt: number
      • Optionallength: number

      Returns PingPongDto

    Properties

    t: number

    The running value, such as elapsed time; it may grow without limit.

    0.5
    

    -Infinity

    Infinity

    0.1

    length: number

    The turning point: the result rises to it, then falls back to 0.

    1
    

    -Infinity

    Infinity

    0.1