mirror of
https://github.com/penpot/penpot.git
synced 2026-04-26 11:48:28 +00:00
✨ Add minor improvement to points->lines helper
This commit is contained in:
parent
a9d2cc227b
commit
a82ee01d99
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user