diff options
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) } |