Bitbybit Docs
    Preparing search index...

    Class WrapDto (Inputs.Math)

    A number and the range math.wrap cycles it into.

    Index

    Constructors

    Properties

    Constructors

    • Parameters

      • Optionalnumber: number
      • Optionalmin: number
      • Optionalmax: number

      Returns WrapDto

    Properties

    number: number

    The number to wrap; it may be far outside the range.

    1.5
    

    -Infinity

    Infinity

    0.1

    min: number

    The start of the range, included in the result.

    0
    

    -Infinity

    Infinity

    0.1

    max: number

    The end of the range, not included: a number reaching it comes back in at min.

    1
    

    -Infinity

    Infinity

    0.1