diff options
author | HampusM <hampus@hampusmat.com> | 2024-05-18 16:57:03 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2024-05-18 16:57:03 +0200 |
commit | d139e19bd287ba340b923136c266a77367b83990 (patch) | |
tree | 4d8e469ea2ebf9445236c0a2b3d9b392460282f5 /engine/src/math.rs | |
parent | d7675fd0119afe5e9cc872ce8bbb2977a16f0b26 (diff) |
refactor(engine): fix clippy lints
Diffstat (limited to 'engine/src/math.rs')
-rw-r--r-- | engine/src/math.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/src/math.rs b/engine/src/math.rs index bda3b59..b86e760 100644 --- a/engine/src/math.rs +++ b/engine/src/math.rs @@ -10,8 +10,8 @@ pub fn calc_triangle_surface_normal( edge_c: &Vec3<f32>, ) -> Vec3<f32> { - let v1 = edge_b.clone() - egde_a.clone(); - let v2 = edge_c.clone() - egde_a.clone(); + let v1 = edge_b - egde_a; + let v2 = edge_c - egde_a; v1.cross(&v2) } |