mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 21:30:03 -04:00
Add emath::fast_midpoint (#7435)
This commit is contained in:
@@ -134,7 +134,7 @@ impl Align {
|
||||
if size == f32::INFINITY {
|
||||
Rangef::new(f32::NEG_INFINITY, f32::INFINITY)
|
||||
} else {
|
||||
let left = f32::midpoint(min, max) - size / 2.0;
|
||||
let left = crate::fast_midpoint(min, max) - size / 2.0;
|
||||
Rangef::new(left, left + size)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user