vec2-fn
    Preparing search index...

    Function dot

    • Calculate the dot product of two vectors.

      Parameters

      Returns number

      • Number result of the dot product.
      dot({ x: 1, y: 2 }, { x: 3, y: 4 }); // -> 11