vector shift implemented
This commit is contained in:
parent
5bb4491e0f
commit
18fdbb9a99
@ -42,7 +42,7 @@ impl Aabb{
|
||||
self.max-self.min
|
||||
}
|
||||
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
|
||||
// pub fn area_weight(&self)->f32{
|
||||
|
Loading…
Reference in New Issue
Block a user