check if two lines are same
| 173 | } |
| 174 | // check if two lines are same |
| 175 | bool are_lines_same(PT a, PT b, PT c, PT d) { |
| 176 | if (fabs(cross(a - c, c - d)) < eps && fabs(cross(b - c, c - d)) < eps) return true; |
| 177 | return false; |
| 178 | } |
| 179 | // bisector vector of <abc |
| 180 | PT angle_bisector(PT &a, PT &b, PT &c){ |
| 181 | PT p = a - b, q = c - b; |