How to Zip one IEnumerable with itself
- by wageoghe
I am implementing some math algorithms based on lists of points, like Distance, Area, Centroid, etc. Just like in this post: http://stackoverflow.com/questions/2227828/find-the-distance-required-to-navigate-a-list-of-points-using-linq
That post describes how to calculate the total distance of a sequence of points (taken in order) by essentially…