forked from godot-rust/gdext
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sum, Product implementations for Iterator<Vector*>
Add implementations for `std::iter::Sum` and `std::iter::Product` for the Vector (and IVector) types. Note both operations are element-wise (this comes from glam). Due to there being multiple Add and Mul implementations (ultimately in glam), I noticed having to specify types explicitly in some circumstances. I imagine this can probably be improved but I am not an expert on generic programming.
- Loading branch information
Showing
3 changed files
with
69 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters