From dded820fc59ea72a979241468f6cd313bdcea7d2 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Wed, 22 Nov 2023 22:26:23 -0800 Subject: [PATCH] fewer multiplications --- src/model_physics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model_physics.rs b/src/model_physics.rs index c87db5a..6202a97 100644 --- a/src/model_physics.rs +++ b/src/model_physics.rs @@ -472,7 +472,7 @@ impl MinkowskiMesh<'_>{ //f x e points out let n=-face_n.cross(edge_n); let verts=self.edge_verts(directed_edge_id.as_undirected()); - let d=n.dot(self.vert(verts[0]))+n.dot(self.vert(verts[1])); + let d=n.dot(self.vert(verts[0])+self.vert(verts[1])); //WARNING! d outside of *2 for t in crate::zeroes::zeroes2((n.dot(relative_body.position))*2-d,n.dot(relative_body.velocity)*2,n.dot(relative_body.acceleration)){ let t=relative_body.time+crate::integer::Time::from(t);