performance enhancement.
This commit is contained in:
@@ -65,6 +65,7 @@
|
||||
(conj path (from-scale current-node))
|
||||
(came-from (vec current-node))))))))
|
||||
|
||||
|
||||
(def d2 ^double (- (Math/sqrt 2) 2))
|
||||
(defn heuristic ^long [^long goal-x ^long goal-y ^long current-x ^long current-y]
|
||||
(let [dist-x (if (< goal-x current-x)
|
||||
|
||||
Reference in New Issue
Block a user