0822096a3a2792ed994ea50fe1f73aceab96d6b5
The Vec3::as_unit() function accepts input by reference. It passes back out a copy, however, and some inputs are even temporaries. I bet the optimizer can see through this game and will do the right thing if I give it a value instead. It should perform copy elision as appropriate, even if I'm missing out on Rust's move semantics here. Remove some old, unused, and unuseable functions.
Languages
Rust
100%