I have lines that consist of two points, I need to get a chain of points. Help me implement this algorithm in C ++ if the point is equal to the first point ("0" on