Bitbybit Docs
    Preparing search index...

    Class RemapNumberDto (Inputs.Math)

    A number, the range it is in and the range math.remap maps it to.

    Index

    Constructors

    • Parameters

      • Optionalnumber: number
      • OptionalfromLow: number
      • OptionalfromHigh: number
      • OptionaltoLow: number
      • OptionaltoHigh: number

      Returns RemapNumberDto

    Properties

    number: number

    The number to map.

    0.5
    

    -Infinity

    Infinity

    0.1

    fromLow: number

    The low end of the range the number is in.

    0
    

    -Infinity

    Infinity

    0.1

    fromHigh: number

    The high end of the range the number is in.

    1
    

    -Infinity

    Infinity

    0.1

    toLow: number

    The low end of the range to map to; fromLow lands here.

    1
    

    -Infinity

    Infinity

    0.1

    toHigh: number

    The high end of the range to map to; fromHigh lands here.

    2
    

    -Infinity

    Infinity

    0.1