You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varturf=require("@turf/turf");// Two line segments that share the same start point:vara=[[-64.4522672777778,53.738182155555506],[-64.45201727777784,53.7386266]];varb=[[-64.4522672777778,53.738182155555506],[-64.45223950000003,53.738182155555506]];turf.booleanIntersects(turf.lineString(a),turf.lineString(b));// trueturf.booleanIntersects(turf.lineString(a),turf.lineString(b.toReversed()));// trueturf.booleanIntersects(turf.lineString(a.toReversed()),turf.lineString(b));// trueturf.booleanIntersects(turf.lineString(a.toReversed()),turf.lineString(b.toReversed()));// false
The text was updated successfully, but these errors were encountered:
Hi @bblack. Would you mind trying this with one of the available Turf alphas? For example 7.0.0-alpha.2
I tried to reproduce this locally and all four returned true. If a newer version of Turf doesn't help, something else to try is I used a.splice().reverse() rather than a.toReversed() to get a reversed copy of the array.
Let us know what you find, and we can dig further if those don't work.
@smallsaucepan : i tried my example on 7.0.0-alpha.2 , and the issue does not occur there: all four cases return "true", including the last one which was returning "false" on 6.5.0.
turf 6.5.0
The text was updated successfully, but these errors were encountered: