mirror of
https://github.com/hannobraun/Fornjot
synced 2025-02-28 18:15:53 +00:00
Add Aabb<2>::to_parry
This commit is contained in:
parent
55330ae37f
commit
36b1c55781
@ -67,6 +67,14 @@ impl Aabb<2> {
|
|||||||
max: aabb.maxs.into(),
|
max: aabb.maxs.into(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Convert the AABB to a Parry AABB
|
||||||
|
pub fn to_parry(self) -> parry2d_f64::bounding_volume::Aabb {
|
||||||
|
parry2d_f64::bounding_volume::Aabb {
|
||||||
|
mins: self.min.to_na(),
|
||||||
|
maxs: self.max.to_na(),
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Aabb<3> {
|
impl Aabb<3> {
|
||||||
|
Loading…
Reference in New Issue
Block a user