| 1257 | } |
| 1258 | |
| 1259 | inline static |
| 1260 | bool |
| 1261 | inrange(double x0, |
| 1262 | double x1, |
| 1263 | double x) |
| 1264 | { |
| 1265 | return (x0 <= x && x <= x1) || (x1 <= x && x <= x0); |
| 1266 | } |
| 1267 | |
| 1268 | // Return true if point z is on z0--z1; otherwise compute contribution to |
| 1269 | // winding number. |