micromath
micromath copied to clipboard
Add core::iter::Sum for Vector2d and Vector3d
This implements Sum for Vector2d/Vector3d and references to them. The implementation for references is a bit annoying but simplifies summing without having to explicitly call cloned or copied on the iterator.