feat: Added stuff
Some checks failed
build / checks-build (push) Has been cancelled
build / checks-matrix (push) Has been cancelled
build / codecov (push) Has been cancelled
docs / docs (push) Has been cancelled

This commit is contained in:
uttarayan21
2025-08-18 22:10:29 +05:30
parent 7fc958b299
commit 783320131a
12 changed files with 73 additions and 464 deletions

View File

@@ -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"]

View File

@@ -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();
});

View File

@@ -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");
}
}