We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent612f06b commitb6d7eb0Copy full SHA for b6d7eb0
src/line.c
@@ -494,15 +494,6 @@ sline_sline_pos(const SLine *l1, const SLine *l2)
494
vector3d_spoint(&p[2],&v[1][0]);
495
vector3d_spoint(&p[3],&v[1][1]);
496
497
-/* check connected lines */
498
-if (FPgt(il2->length,0.0)&& (vector3d_eq(&v[0][0],&v[1][0])||
499
-vector3d_eq(&v[0][0],&v[1][1])||
500
-vector3d_eq(&v[0][1],&v[1][0])||
501
-vector3d_eq(&v[0][1],&v[1][1])))
502
-{
503
-returnPGS_LINE_CONNECT;
504
-}
505
-
506
/* Check, sl2 is at equator */
507
if (FPzero(p[2].lat)&&FPzero(p[3].lat))
508
{
@@ -527,6 +518,15 @@ sline_sline_pos(const SLine *l1, const SLine *l2)
527
518
returnPGS_LINE_AVOID;
528
519
}
529
520
521
+/* check connected lines */
522
+if (FPgt(il2->length,0.0)&& (vector3d_eq(&v[0][0],&v[1][0])||
523
+vector3d_eq(&v[0][0],&v[1][1])||
524
+vector3d_eq(&v[0][1],&v[1][0])||
525
+vector3d_eq(&v[0][1],&v[1][1])))
526
+{
+returnPGS_LINE_CONNECT;
+}
+
530
/* Now sl2 is not at equator */
531
532
if (FPle(il2->length,seg_length))