1
0
Fork 0
2022/src/vectors
Matej Focko 06243918fc
vectors: return value instead of reference
There was no use-case for returning reference rather than a value and
in majority of case the dereference was needed.

When using 2D/3D vectors, they are mostly initialized with the numbers
and it is contraproductive to pass around references to numbers as they
are more expensive than the copies.

Signed-off-by: Matej Focko <me@mfocko.xyz>
2023-01-07 20:09:35 +01:00
..
mod.rs vectors: factor out and implement 3D vector 2023-01-07 16:18:42 +01:00
vec2d.rs vectors: return value instead of reference 2023-01-07 20:09:35 +01:00
vec3d.rs vectors: return value instead of reference 2023-01-07 20:09:35 +01:00