• Returns the dot product of two two-element vectors.

    Parameters

    • u: Vec2

      The first vector (2 elements).

    • v: Vec2

      The second vector (2 elements).

    Returns number

    The dot product of the vectors.