Account for inlay biases when clipping a point
This commit is contained in:
committed by
Kirill Bulatov
parent
976edfedf7
commit
f77b680db9
@@ -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>>);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user