Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
how to find the partial line segment inside the QPolygonF
Qt Enthusiast last edited by Qt Enthusiast
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.
Qt Enthusiast last edited by
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.