Account for inlay biases when clipping a point

This commit is contained in:
Antonio Scandurra
2023-06-29 22:25:50 +03:00
committed by Kirill Bulatov
parent 976edfedf7
commit f77b680db9
3 changed files with 415 additions and 95 deletions
+9
View File
@@ -102,6 +102,15 @@ pub enum Bias {
Right,
}
impl Bias {
pub fn invert(self) -> Self {
match self {
Self::Left => Self::Right,
Self::Right => Self::Left,
}
}
}
#[derive(Debug, Clone)]
pub struct SumTree<T: Item>(Arc<Node<T>>);