Liking cljdoc? Tell your friends :D

planning.utils


euclidian-distanceclj/s

(euclidian-distance a b)

Straight line distance between points.

Straight line distance between points.
sourceraw docstring

grid-neigborsclj/s

(grid-neigbors neighbors grid c)
source

heightmap-distanceclj/s

(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.
sourceraw docstring

manhattan-distanceclj/s

(manhattan-distance a b)
source

mark-pathclj/s

(mark-path grid solution)
source

moore-neigborsclj/s

(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
sourceraw docstring

von-neumann-neighborsclj/s

(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
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close