dot2 function Null safety

double dot2 (
  1. Vector2 x,
  2. Vector2 y
)

2D dot product.

Implementation

double dot2(Vector2 x, Vector2 y) => x.dot(y);