fewer multiplications

This commit is contained in:
Quaternions 2023-11-22 22:26:23 -08:00
parent c971ab24e2
commit dded820fc5

View File

@ -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);