--wip-- [skip ci]

This commit is contained in:
2025-06-26 19:47:18 +01:00
parent 8a371de244
commit 88ed766ab8
3 changed files with 56 additions and 12 deletions
+8 -1
View File
@@ -67,13 +67,20 @@ impl Interval {
Interval::new(Value::splat(lower), Value::splat(upper))
}
const fn const_splat(value: f32) -> Interval {
pub const fn const_splat(value: f32) -> Interval {
Interval {
lower: Value::splat(value),
upper: Value::splat(value),
}
}
pub const fn const_splat2(lower: f32, upper: f32) -> Interval {
Interval {
lower: Value::splat(lower),
upper: Value::splat(upper),
}
}
/// Returns the lower bound of the interval
#[inline]
pub fn lower(&self) -> Value {