From c1ae19b098e4358c5635ba8e8aa0bc86e8eb48fd Mon Sep 17 00:00:00 2001 From: Quaternions Date: Tue, 21 Nov 2023 16:02:33 -0800 Subject: [PATCH] rename DirectedEdge::neg to reverse --- src/model_physics.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/model_physics.rs b/src/model_physics.rs index f3c2057..04a88ae 100644 --- a/src/model_physics.rs +++ b/src/model_physics.rs @@ -20,7 +20,7 @@ pub trait DirectedEdge{ fn as_undirected(&self)->Self::UndirectedEdge; fn parity(&self)->bool; //this is stupid but may work fine - fn neg(&self)-><::UndirectedEdge as UndirectedEdge>::DirectedEdge{ + fn reverse(&self)-><::UndirectedEdge as UndirectedEdge>::DirectedEdge{ self.as_undirected().as_directed(!self.parity()) } } @@ -466,7 +466,7 @@ impl MeshQuery for MinkowskiM match face_id{ MinkowskiFace::VertFace(v0,f1)=>{ Cow::Owned(self.mesh1.face_edges(f1).iter().map(|&edge_id1|{ - MinkowskiDirectedEdge::VertEdge(v0,edge_id1.neg()) + MinkowskiDirectedEdge::VertEdge(v0,edge_id1.reverse()) }).collect()) }, MinkowskiFace::EdgeEdge(e0,e1,parity)=>{