URBANDEV query about the idea

and we are using 2 scan (vertical and horizontal) coz we need to get it for each of the lines. Please verify?

Yes. You are correct.

1 Like

Yes, twice.

1 Like

Actually I am scanning once but storing the required values in a and b just after scanning the values.For calculating vertical lines I am storing the required values in struct array a and for horizontal lines in struct array b.

R is used for reporting all the intersections in any segment.We does not require this.