--wip-- [skip ci]
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user