I have a collection of Points, stored in a PointCollection.
I need the points in the collection to draw lines.
So, for example, if a point collection has four points, that will be three lines.
Example:
(1) Point(1,1) (2) Point(2,2) (3) Point(3,3) (4) Point(4,4)
If I have a list of points, comprised of the four points referenced above, I am going to draw three lines, using the following logic:
Line 1 - Point(1,1), Point(2,2) Line 2 - Point(2,2), Point(3,3) Line 3 - Point(3,3), Point(4,4)
Is there a way, using Linq, Lambda Expressions, Extension Methods etc., to extract these points in pairs, from my initial list of points? That way I can iteratively take each pair of points and draw my lines?
Thanks.