Intersection: add a new3 constructor

This commit is contained in:
2022-10-10 04:25:23 -07:00
parent 3e32526099
commit ff88b18473

View File

@@ -172,6 +172,9 @@ impl<R1, R2> Intersection<R1, R2> {
pub fn new2(r1: R1, r2: R2) -> Self {
Self(r1, r2)
}
pub fn new3<R3: Region>(r1: R1, r2: R2, r3: R3) -> Intersection<Self, R3> {
Intersection::new2(r1, r2).and(r3)
}
pub fn region0_of_2(&self) -> &R1 {
&self.0
}