(&self)
| 65 | } |
| 66 | |
| 67 | pub fn hull(&self) -> geo::Polygon { |
| 68 | let hull: Vec<geo::Coord> = self |
| 69 | .triangulation |
| 70 | .hull |
| 71 | .iter() |
| 72 | .map(|i| geo::coord! {x: self.points[*i].x, y: self.points[*i].y}) |
| 73 | .collect(); |
| 74 | let hull = geo::LineString::new(hull); |
| 75 | geo::Polygon::new(hull, vec![]) |
| 76 | } |
| 77 | |
| 78 | pub fn digraph(&self) -> GeometryGraph<Directed> { |
| 79 | let nodes = self.points.len(); |
no outgoing calls