Bitbybit Docs
    Preparing search index...

    Class VectorsTheSameDto (Inputs.Vector)

    Two vectors to compare with vector.vectorsTheSame, and how close their entries must be.

    Index

    Constructors

    Properties

    Constructors

    • Parameters

      • Optionalvec1: number[]
      • Optionalvec2: number[]
      • Optionaltolerance: number

      Returns VectorsTheSameDto

    Properties

    vec1: number[]

    First vector to compare.

    undefined
    
    vec2: number[]

    Second vector; a different length means the two are never the same.

    undefined
    
    tolerance: number

    Entries count as equal when they differ by less than this.

    1e-7
    

    0

    Infinity