Bitbybit Docs
    Preparing search index...

    Class SpanEaseItemsDto (Inputs.Vector)

    A start, an end, a count and an easing curve for vector.spanEaseItems, which spaces the numbers unevenly along the curve.

    Index

    Constructors

    Properties

    Constructors

    • Parameters

      • OptionalnrItems: number
      • Optionalmin: number
      • Optionalmax: number
      • Optionalease: easeEnum

      Returns SpanEaseItemsDto

    Properties

    nrItems: number

    How many numbers to produce, including min and max; at least 2.

    100
    

    2

    Infinity

    1

    min: number

    The first number.

    0
    

    -Infinity

    Infinity

    1

    max: number

    The last number.

    1
    

    -Infinity

    Infinity

    1

    ease: easeEnum

    The easing curve that spaces the numbers: an easeIn curve bunches them near min, an easeOut curve near max, an easeInOut curve at both ends.

    easeInSine
    
    intervals: boolean

    When true, the result holds the gaps between neighboring numbers instead of the numbers themselves; the first entry is min.

    false