Returns whether the AABB is consistent, i.e. `aabb.min()[i] <= aabb.max()[i]` for all `i` ``` use crate::splashsurf_lib::Aabb3d; use nalgebra::Vector3; assert_eq!( Aabb3d:: ::zeros().is_consistent(), true); assert_eq!(Aabb3d::new(Vector3::new(-1.0, -1.0, -1.0), Vector3::new(1.0, 1.0, 1.0)).is_consistent(), true); assert_eq!(Aabb3d::new(Vector3::new(-1.0, 1.0, -1.0), Vector3::new(1.0, -1.0, 1.0
(&self)
| 145 | /// assert_eq!(Aabb3d::new(Vector3::new(-1.0, 1.0, -1.0), Vector3::new(1.0, -1.0, 1.0)).is_consistent(), false); |
| 146 | /// ``` |
| 147 | pub fn is_consistent(&self) -> bool { |
| 148 | self.min <= self.max |
| 149 | } |
| 150 | |
| 151 | /// Returns whether the AABB is degenerate in any dimension, i.e. `aabb.min()[i] == aabb.max()[i]` for any `i` |
| 152 | /// ``` |
no outgoing calls
no test coverage detected