there are numbers of lines connected to each other. i ve extracted the line start point and end points but i am confused how to compare the end point of one line with the start point of adjoining line? Please help me.
struct Point
{
int startX;
int startY;
int endX;
int endY;
};
Point point1;
Point point2;
// Set the variables of point1 and point2...
if (point1.endX == point2.startX && point1.endY == point2.startY)
{
// Do something...
}