From 651150760c72dbaea1e2e8d407ec28c60383ab71 Mon Sep 17 00:00:00 2001
From: Quaternions <krakow20@gmail.com>
Date: Sat, 8 Mar 2025 14:34:32 -0800
Subject: [PATCH] common: aabb: use midpoint for center

---
 lib/common/src/aabb.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/common/src/aabb.rs b/lib/common/src/aabb.rs
index 7b5e55d1b..5b72fd197 100644
--- a/lib/common/src/aabb.rs
+++ b/lib/common/src/aabb.rs
@@ -46,7 +46,7 @@ impl Aabb{
 		self.max-self.min
 	}
 	pub fn center(&self)->Planar64Vec3{
-		self.min+(self.max-self.min)>>1
+		self.min.map_zip(self.max,|(min,max)|min.midpoint(max))
 	}
 	//probably use floats for area & volume because we don't care about precision
 	// pub fn area_weight(&self)->f32{