Returns the dot product of two vectors
Optional
If not passed, defaults to [0,0]
dot product result
The scalar overload can avoid temporary tuple allocations in hot code paths.
vecDot([2, 0], [2, 0]); // returns 4 Copy
vecDot([2, 0], [2, 0]); // returns 4
Returns the dot product of two vectors