Bitbybit Docs
    Preparing search index...

    Class ClampDto (Inputs.Math)

    A number and the range math.clamp keeps it within.

    Index

    Constructors

    Properties

    Constructors

    • Parameters

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

      Returns ClampDto

    Properties

    number: number

    The number to limit.

    0.5
    

    -Infinity

    Infinity

    0.1

    min: number

    The lowest value allowed; anything below becomes this.

    0
    

    -Infinity

    Infinity

    0.1

    max: number

    The highest value allowed; anything above becomes this.

    1
    

    -Infinity

    Infinity

    0.1