• 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

    Example

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

Generated using TypeDoc