how to find the partial line segment inside the QPolygonF
I have a
I want to get coordinates of segments of QLineF which is inside the polygon
I could not way to find the coordinates of QLineF which is inside
QPolygonFis actually a QVector of QLineF objects. So you are easily able to iterate over them.
The rest "simply" is then plain mathematics.
I was looking for some optimized algorithm for the same .May be O(n) complexsity
@Qt-Enthusiast You can ask Google
yes, but this is out-of-scope for Qt since this is solvable with mathematics.
I am sure you can find various algorithms/formulas on the web for this.