Function vec4.dot

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

float dot(
  vec4 v
) const;