Returns the geometric centroid of the AABB (mean of the corner points)
(&self)
| 208 | |
| 209 | /// Returns the geometric centroid of the AABB (mean of the corner points) |
| 210 | pub fn centroid(&self) -> SVector<R, D> { |
| 211 | self.min + (self.extents() / (R::one() + R::one())) |
| 212 | } |
| 213 | |
| 214 | /// Checks if the given AABB is inside the AABB, the AABB is considered to be half-open to its max coordinate |
| 215 | pub fn contains_aabb(&self, other: &Self) -> bool { |
no test coverage detected