IEnumerable<LineSegmentT> AsLineSegments(IEnumerable<PointT> points) { return points.AdjacentPairs().Select(p => new LineSegmentT(p.A, p.B)); }