[−][src]Function lasy::profile_path
pub fn profile_path<'a, P, E>(
points: &'a [P],
edges: E
) -> impl 'a + Iterator<Item = (EdgeProfile, PointIndex, PointIndex)> where
P: Position + Weight,
E: 'a + IntoIterator<Item = Segment>,
Traverse a path described by an iterator yielding edges, profiling the edges along the way.
Produces an iterator yielding an EdgeProfile
for each edge.
The path is considered to be a circuit if the end point index of the final edge is equal to the start point index of the first edge.
In the case that the path is a circuit, the end_corner
angle for the final edge will be
derived from the angle between the last edge and the first edge.
If the path is not a circuit, the last edge profile will specify an end_corner
angle of
0.0
.