Account for inlay biases when clipping a point

This commit is contained in:
Antonio Scandurra 2023-06-23 17:35:18 +03:00 committed by Kirill Bulatov
parent 976edfedf7
commit f77b680db9
3 changed files with 415 additions and 95 deletions

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>>);