PDA

View Full Version : How to find the intersection point of polylines



arashadsaifi
2nd December 2009, 07:02
Hi All,


How to find the intersection point of two polylines in Qt.

I have the objects of QPolygonF with one object is having 2 points which draw a vertical line and other object is having 200 points which polt the sign wave. I want to get the intersection betbeen these two polylines.

please do the needful.



Thanks in advance.

wysota
3rd December 2009, 10:12
You need to do some math by calculating intersections of each two lines from each polyline. I'm sure you remember the equasion for doing that from school :)