mirror of
https://github.com/emilk/egui.git
synced 2026-08-29 12:50:04 -04:00
@@ -1855,7 +1855,7 @@ where
|
||||
.into_iter()
|
||||
.enumerate()
|
||||
.map(|(index, bar)| {
|
||||
let bar_rect: Rect = transform.rect_from_values(&bar.bounds_min(), &bar.bounds_max());
|
||||
let bar_rect = transform.rect_from_values(&bar.bounds_min(), &bar.bounds_max());
|
||||
let dist_sq = bar_rect.distance_sq_to_pos(point);
|
||||
|
||||
ClosestElem { index, dist_sq }
|
||||
|
||||
@@ -245,8 +245,7 @@ impl PlotPoints {
|
||||
(0..points)
|
||||
.map(|i| {
|
||||
let t = start + i as f64 * increment;
|
||||
let (x, y) = function(t);
|
||||
[x, y]
|
||||
function(t).into()
|
||||
})
|
||||
.collect()
|
||||
}
|
||||
|
||||
@@ -1845,7 +1845,7 @@ impl PreparedPlot {
|
||||
return Vec::new();
|
||||
}
|
||||
|
||||
let interact_radius_sq: f32 = (16.0f32).powi(2);
|
||||
let interact_radius_sq = (16.0_f32).powi(2);
|
||||
|
||||
let candidates = items.iter().filter_map(|item| {
|
||||
let item = &**item;
|
||||
|
||||
Reference in New Issue
Block a user