(points: Points)
| 113 | |
| 114 | |
| 115 | def select_lowest_point(points: Points) -> Tuple[Point, int]: |
| 116 | |
| 117 | x = [] |
| 118 | y = [] |
| 119 | |
| 120 | for p in points: |
| 121 | x.append(p.x) |
| 122 | y.append(p.y) |
| 123 | |
| 124 | # select the lowest point |
| 125 | ixs = lexsort((x, y)) |
| 126 | |
| 127 | return points[ixs[0]], ixs[0] |
| 128 | |
| 129 | |
| 130 | def select_lowest_arc(arcs: Arcs) -> Tuple[Point, Arc]: |
no test coverage detected