(&self)
| 55 | } |
| 56 | |
| 57 | pub fn lines(&self) -> impl Iterator<Item = geo::Line> + '_ { |
| 58 | self.triangle_points().flat_map(|(a, b, c)| { |
| 59 | [ |
| 60 | geo::Line::new(a, b), |
| 61 | geo::Line::new(b, c), |
| 62 | geo::Line::new(a, c), |
| 63 | ] |
| 64 | }) |
| 65 | } |
| 66 | |
| 67 | pub fn hull(&self) -> geo::Polygon { |
| 68 | let hull: Vec<geo::Coord> = self |