vector shift implemented

This commit is contained in:
Quaternions 2024-09-10 14:41:18 -07:00
parent 5bb4491e0f
commit 18fdbb9a99

View File

@ -42,7 +42,7 @@ impl Aabb{
self.max-self.min self.max-self.min
} }
pub fn center(&self)->Planar64Vec3{ pub fn center(&self)->Planar64Vec3{
self.min+(self.max-self.min).map(|v|v>>1) self.min+(self.max-self.min)>>1
} }
//probably use floats for area & volume because we don't care about precision //probably use floats for area & volume because we don't care about precision
// pub fn area_weight(&self)->f32{ // pub fn area_weight(&self)->f32{