simplify
This commit is contained in:
+3
-3
@@ -45,7 +45,7 @@
|
||||
[[cx cy] [dx dy]] [a b]]
|
||||
(and (not (some #(intersect? [a b] %) segments))
|
||||
(not (some #(intersect? [[cx dy] [dx cy]] %) segments)))))) ;; check reverse diaganol too
|
||||
(sort-by (partial apply area))
|
||||
last
|
||||
(apply area))
|
||||
(map (partial apply area))
|
||||
sort
|
||||
last)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user