Intersection: add a new3
constructor
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user