1
- /// I am trying to get a custom iterator working to replace the
2
- /// [super::slice_itertools::pairwise()] function.
3
- ///
4
- /// It is turning out to be very complicated :(
5
1
///
6
2
/// My requirements are
7
3
///
@@ -28,7 +24,7 @@ use super::{
28
24
} ;
29
25
30
26
/// Bring this into scope to imbue [LineString] with
31
- /// [LineStringOffsetSegmentPairIterable:: iter_offset_segment_pairs()]
27
+ /// [iter_offset_segment_pairs()]
32
28
pub ( super ) trait LineStringOffsetSegmentPairs < T >
33
29
where
34
30
T : CoordFloat ,
82
78
}
83
79
}
84
80
85
- ///
86
- /// The following diagram illustrates the meaning of the struct members.
87
- ///
88
- /// - `LineString` `a---b---c` is offset to form
81
+
82
+ /// - [LineString] `a---b---c` is offset to form
89
83
/// - [LineMeasured] `ab_offset` (`a'---b'`) and
90
84
/// - [LineMeasured] `bc_offset` (`b'---c'`)
91
85
/// - [LineIntersectionResultWithRelationships] `i` is the intersection point.
@@ -110,6 +104,7 @@ where
110
104
// this is true for the last result
111
105
pub last : bool ,
112
106
107
+ // TODO: seems a,b,c are unused...
113
108
pub a : Coord < T > ,
114
109
pub b : Coord < T > ,
115
110
pub c : Coord < T > ,
@@ -207,12 +202,7 @@ mod test {
207
202
. map ( |item| match item {
208
203
OffsetSegmentsIteratorItem {
209
204
ab_offset : Some ( LineMeasured { .. } ) ,
210
- bc_offset :
211
- Some ( LineMeasured {
212
- line : bc_offset,
213
- length : bc_len,
214
- } ) ,
215
-
205
+ bc_offset : Some ( LineMeasured { .. } ) ,
216
206
i : Some ( LineIntersectionResultWithRelationships { .. } ) ,
217
207
..
218
208
} => Some ( ( ) ) ,
0 commit comments