Skip to content
Discussion options

You must be logged in to vote

I guess this could be handled by Rust iterators, e.g. something like

vec3s.iter().map(|v| m.transform_point3(v)).collect()

or to mutate the input

vec3s.iter_mut().for_each(|v| *v = m.transform_point3(*v));

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bitshifter
Comment options

Answer selected by bitshifter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants