mirror of
https://github.com/hannobraun/Fornjot
synced 2025-02-28 18:15:53 +00:00
Add Aabb<2>::merged
This commit is contained in:
parent
36b1c55781
commit
5bd0192d0f
@ -1,3 +1,4 @@
|
||||
use parry2d_f64::bounding_volume::BoundingVolume as _;
|
||||
use parry3d_f64::bounding_volume::BoundingVolume as _;
|
||||
|
||||
use super::{Point, Vector};
|
||||
@ -75,6 +76,11 @@ impl Aabb<2> {
|
||||
maxs: self.max.to_na(),
|
||||
}
|
||||
}
|
||||
|
||||
/// Merge this AABB with another
|
||||
pub fn merged(&self, other: &Self) -> Self {
|
||||
self.to_parry().merged(&other.to_parry()).into()
|
||||
}
|
||||
}
|
||||
|
||||
impl Aabb<3> {
|
||||
|
Loading…
Reference in New Issue
Block a user