(vList, vx, angleDiff, lengthdiff1, lengthdiff2)
| 603 | |
| 604 | |
| 605 | def FeatureLine(vList, vx, angleDiff, lengthdiff1, lengthdiff2): |
| 606 | avList = [] |
| 607 | for i in range(len(vList)): |
| 608 | v1 = vList[i] |
| 609 | minAngle = min([v1.cos(vx), math.fabs(v1.cos(vx) - 90), 180 - v1.cos(vx)]) |
| 610 | if (minAngle < angleDiff and v1.length() > lengthdiff1) or ( |
| 611 | v1.length() > lengthdiff2 |
| 612 | ): |
| 613 | avList.append(v1) |
| 614 | |
| 615 | return avList |
| 616 | |
| 617 | |
| 618 | def LineRelation(v1, v2, vx, angleDiff, lenthDiff, area): |
no test coverage detected