interval bounding box

This commit is contained in:
2025-06-26 20:38:44 +01:00
parent 88ed766ab8
commit 544de3165a
3 changed files with 61 additions and 25 deletions
+5
View File
@@ -59,6 +59,11 @@ impl Interval {
Self { lower, upper }
}
#[inline]
pub const fn new_unchecked(lower: Value, upper: Value) -> Self {
Self { lower, upper }
}
pub fn splat(value: f32) -> Interval {
Interval::new(Value::splat(value), Value::splat(value))
}