Skip to content

Commit

Permalink
Fixes shortest_edge function
Browse files Browse the repository at this point in the history
  • Loading branch information
Stoeoef committed Feb 13, 2022
1 parent 191ad69 commit b4a8c90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/delaunay_core/handles/handle_impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ where
pub(crate) fn shortest_edge(&self) -> (DirectedEdgeHandle<'a, V, DE, UE, F>, V::Scalar) {
let [e0, e1, e2] = self.adjacent_edges();
let [l0, l1, l2] = [e0.length_2(), e1.length_2(), e2.length_2()];
if l0 < l1 && l1 < l2 {
if l0 < l1 && l0 < l2 {
(e0, l0)
} else if l1 < l2 {
(e1, l1)
Expand Down

0 comments on commit b4a8c90

Please sign in to comment.