(euclidian-distance a b)
Straight line distance between points.
Straight line distance between points.
(heightmap-distance heightmap a b)
Straight line distance between points on a grid where Z coordinate is taken as the value at the coordinate in the grid.
Straight line distance between points on a grid where Z coordinate is taken as the value at the coordinate in the grid.
(moore-neigbors [x y])
(moore-neigbors grid c)
Return the 4 neighboring adjacent cells in a cartesian grid. https://en.wikipedia.org/wiki/Moore_neighborhood
Return the 4 neighboring adjacent cells in a cartesian grid. https://en.wikipedia.org/wiki/Moore_neighborhood
(von-neumann-neighbors [x y])
(von-neumann-neighbors grid c)
Return the 8 neighboring cells in a cartesian grid. https://en.wikipedia.org/wiki/Von_Neumann_neighborhood
Return the 8 neighboring cells in a cartesian grid. https://en.wikipedia.org/wiki/Von_Neumann_neighborhood
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close