| 181 | } |
| 182 | |
| 183 | bool isPointOnSegment(const MapCoordF& seg_start, const MapCoordF& seg_end, const MapCoordF& point) |
| 184 | { |
| 185 | bool ok; |
| 186 | double param = parameterOfPointOnLine(seg_start.x(), seg_start.y(), |
| 187 | seg_end.x() - seg_start.x(), seg_end.y() - seg_start.y(), |
| 188 | point.x(), point.y(), ok); |
| 189 | return ok && param >= 0 && param <= 1; |
| 190 | } |
| 191 | |
| 192 | |
| 193 | void Util::hatchingOperation(const QRectF& extent, double spacing, double offset, double rotation, |
no test coverage detected