diff --git a/common/src/app/common/geom/shapes/intersect.cljc b/common/src/app/common/geom/shapes/intersect.cljc index 343855ef0..b32196f44 100644 --- a/common/src/app/common/geom/shapes/intersect.cljc +++ b/common/src/app/common/geom/shapes/intersect.cljc @@ -73,12 +73,10 @@ (points->lines points true)) ([points closed?] - (map vector - points - (-> (rest points) - (vec) - (cond-> closed? - (conj (first points))))))) + (map vector points + (cond-> (rest points) + (true? closed?) + (concat (list (first points))))))) (defn intersects-lines? "Checks if two sets of lines intersect in any point"