mirror of
https://github.com/aphrody-labs/cadcraft.git
synced 2026-10-13 19:26:54 +00:00
cargo fmt after the community PR batch
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
242a00923d
commit
0ef61cdff5
1 file changed
+1
-5
@@ -59,11 +59,7 @@ impl Bounds2 {
|
||||
// (max - min) can overflow even when both endpoints and their midpoint
|
||||
// are finite. Halve first when the endpoints have opposite signs.
|
||||
let mid = |a: f64, b: f64| {
|
||||
if a.is_sign_negative() != b.is_sign_negative() {
|
||||
a * 0.5 + b * 0.5
|
||||
} else {
|
||||
a + (b - a) * 0.5
|
||||
}
|
||||
if a.is_sign_negative() != b.is_sign_negative() { a * 0.5 + b * 0.5 } else { a + (b - a) * 0.5 }
|
||||
};
|
||||
Vec2::new(mid(self.min.x, self.max.x), mid(self.min.y, self.max.y))
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user