Function vec2.dot

dot product (sum of by-component products of vector components)

float dot(
  const(vec2) v
) const;