sum
Computes the sum of all vectors in the iterable.
Return
A Vector2 representing the sum of all vectors in the iterable. If the iterable is empty, the returned value is a zero vector.
Calculates the summation of all vectors in the iterable.
Iterates through the collection of Vector4
and computes the component-wise sum for each dimension (x, y, z, w).
Return
A Vector4
representing the sum of all vectors in the iterable. If the iterable is empty, returns a Vector4
with all components set to 0.0.