diff --git a/crates/coremem/src/geom/region/mod.rs b/crates/coremem/src/geom/region/mod.rs index c14bf25..8b529a7 100644 --- a/crates/coremem/src/geom/region/mod.rs +++ b/crates/coremem/src/geom/region/mod.rs @@ -172,6 +172,9 @@ impl Intersection { pub fn new2(r1: R1, r2: R2) -> Self { Self(r1, r2) } + pub fn new3(r1: R1, r2: R2, r3: R3) -> Intersection { + Intersection::new2(r1, r2).and(r3) + } pub fn region0_of_2(&self) -> &R1 { &self.0 }