summaryrefslogtreecommitdiff
path: root/src/interval.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/interval.rs')
-rw-r--r--src/interval.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/interval.rs b/src/interval.rs
index 5086ab2..21c5f6e 100644
--- a/src/interval.rs
+++ b/src/interval.rs
@@ -3,6 +3,7 @@ pub struct Interval {
pub max: f32,
}
+#[allow(unused)]
impl Interval {
pub fn new(min: f32, max: f32) -> Self {
Self { min, max }
@@ -36,11 +37,13 @@ impl Default for Interval {
}
}
+#[allow(unused)]
pub const INTERVAL_EMPTY: Interval = Interval {
min: f32::INFINITY,
max: f32::NEG_INFINITY
};
+#[allow(unused)]
pub const INTERVAL_UNIVERSE: Interval = Interval {
min: f32::NEG_INFINITY,
max: f32::INFINITY