Skip to content

Commit

Permalink
fix point-to-node max distance
Browse files Browse the repository at this point in the history
  • Loading branch information
azizkayumov committed Jun 21, 2023
1 parent 8e8b8fc commit cdf6881
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion srtree/src/measure/distance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ where
pub fn point_to_node_max_distance(&self, point: &Point<T>, node: &Node<T>) -> T {
let ds = self.point_to_sphere_max_distance(point, &node.sphere);
let dr = self.point_to_rect_max_distance(point, &node.rect);
ds.max(dr)
ds.min(dr)
}
}

Expand Down

0 comments on commit cdf6881

Please sign in to comment.