Bitbybit Docs
    Preparing search index...

    Class TwoVectorsDto (Inputs.Vector)

    Two vectors for the pairwise operations of vector: add, sub, dot, cross, dist, angleBetween and the rest. Both need the same number of entries; where order matters, first is the left operand.

    Index

    Constructors

    Properties

    Constructors

    • Parameters

      • Optionalfirst: number[]
      • Optionalsecond: number[]

      Returns TwoVectorsDto

    Properties

    first: number[]

    First vector. Where order matters it is the left operand: the one subtracted from in sub, the left side of the product in cross.

    undefined
    
    second: number[]

    Second vector, with the same number of entries as first.

    undefined