feat: Added stuff
This commit is contained in:
@@ -12,7 +12,10 @@ num = "0.4.3"
|
||||
ordered-float = "5.0.0"
|
||||
simba = "0.9.0"
|
||||
thiserror = "2.0.12"
|
||||
tracing = { version = "0.1.41", optional = true, default-features = false }
|
||||
|
||||
[features]
|
||||
ndarray = ["dep:ndarray"]
|
||||
default = ["ndarray"]
|
||||
tracing = ["dep:tracing"]
|
||||
|
||||
default = ["ndarray", "tracing"]
|
||||
|
||||
@@ -65,8 +65,9 @@ impl Drawable<Array3<u8>> for Aabb2<usize> {
|
||||
pixel.assign(&color);
|
||||
})
|
||||
})
|
||||
.inspect_err(|e| {
|
||||
dbg!(e);
|
||||
.inspect_err(|_e| {
|
||||
#[cfg(feature = "tracing")]
|
||||
tracing::error!("{_e}")
|
||||
})
|
||||
.ok();
|
||||
});
|
||||
|
||||
@@ -54,7 +54,6 @@ impl<T: Num, const D: usize> AxisAlignedBoundingBox<T, D> {
|
||||
if max_point >= min_point {
|
||||
Self::from_min_max_vertices(min_point, max_point)
|
||||
} else {
|
||||
dbg!(max_point, min_point);
|
||||
panic!("max_point must be greater than or equal to min_point");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user