3 ms·
Two that I run into all the time: 1. pairwise iteration over a (cylic) list of points representing the ordered vertices of a polygon will give you a sequence of
by gugagore 8y ago
Two that I run into all the time:
1. pairwise iteration over a (cylic) list of points representing the ordered vertices of a polygon will give you a sequence of edges
2. np.diff, takes differences between consecutive pairs. Sometimes you have a different kind of "difference" operation, though. The pairwise iteration helps you express that.