Skip to content

Commit

Permalink
style: add _squared postfix
Browse files Browse the repository at this point in the history
Signed-off-by: winstxnhdw <[email protected]>
  • Loading branch information
winstxnhdw committed May 16, 2024
1 parent 7aca5c9 commit 492901f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mapf/src/negotiation/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ pub fn negotiate(
] {
let pa = cell_a.center_point(cs);
let pb = cell_b.center_point(cs);
let dist = (pa - pb).norm_squared();
if dist < min_dist_squared {
let dist_squared = (pa - pb).norm_squared();
if dist_squared < min_dist_squared {
conflicts.insert(
(**n_a).clone().min((*n_b).clone()),
(**n_a).clone().max((*n_b).clone()),
Expand Down

0 comments on commit 492901f

Please sign in to comment.