Returns true iff segments ab and cd intersect, properly or improperly.
| 222 | |
| 223 | // Returns true iff segments ab and cd intersect, properly or improperly. |
| 224 | static bool intersect(const int* a, const int* b, const int* c, const int* d) |
| 225 | { |
| 226 | if (intersectProp(a, b, c, d)) |
| 227 | return true; |
| 228 | else if (between(a, b, c) || between(a, b, d) || |
| 229 | between(c, d, a) || between(c, d, b)) |
| 230 | return true; |
| 231 | else |
| 232 | return false; |
| 233 | } |
| 234 | |
| 235 | static bool vequal(const int* a, const int* b) |
| 236 | { |
no test coverage detected