-
-/* The use of some short working variables allows this code to run */
-/* faster on 16-bit computers, but is not essential. It should not */
-/* affect operation on 32-bit computers. The short working variables*/
-/* to not restrict the range of valid input values, as these were */
-/* constrained in any case, due to algorithm restrictions. */
-static bool lines_intersect(double x1, double y1,
- double x2, double y2,
- double x3, double y3,
- double x4, double y4,
- double *x, double *y)
+static bool lines_intersect(const struct coord *start1,
+ const struct coord *start2,
+ const struct coord *start3,
+ const struct coord *start4,
+ struct coord *intersect)