Bitbybit Docs
    Preparing search index...

    Class RemoveConsecutiveDuplicateVectorsDto (Inputs.Vector)

    Vectors to filter with vector.removeConsecutiveDuplicateVectors: only a vector that repeats its predecessor is dropped, and optionally a last vector that repeats the first.

    Index

    Constructors

    Properties

    vectors: number[][]

    The vectors to filter; their order is kept.

    undefined
    
    checkFirstAndLast: boolean

    When true, a last vector that repeats the first is dropped as well, which closes a loop of points cleanly.

    false
    
    tolerance: number

    Two vectors count as the same when every entry differs by less than this.

    1e-7
    

    0

    Infinity