@equinor/videx-linear-algebra
    Preparing search index...

    Function dir

    • Get the vector going from b to a.

      Type Parameters

      Parameters

      • a: T

        Start coordinates

      • b: VectorLike

        End coordinates

      • target: T = a

        Target for storing the results (Default: a)

      Returns T

      Vector going from a to b

      dir([2, 1], [3, 0], new Array(2)); // Returns: [1, -1]