Account for inlay biases when clipping a point
This commit is contained in:
parent
976edfedf7
commit
f77b680db9
3 changed files with 415 additions and 95 deletions
|
@ -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>>);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue