Liking cljdoc? Tell your friends :D

hive.core.domain.position


adjacenciesclj

(adjacencies position)

return list of positions representing the immediate adjacencies of position

return list of positions representing the immediate adjacencies of position
sourceraw docstring

createclj

(create row col)

create a valid position on the grid — see doc/grid.png

create a valid position on the grid — see doc/grid.png
sourceraw docstring

direction-vectorsclj

the six cardinal directions of a single unit of discrete piece movement

the six cardinal directions of a single unit of discrete piece movement
sourceraw docstring

rotationclj

(rotation direction rotation-direction)

rotate direction vector either :cw clockwise or :ccw counter-clockwise

rotate direction vector either :cw clockwise or :ccw counter-clockwise
sourceraw docstring

rotation-clockwiseclj

(rotation-clockwise direction)

return result of applying a single unit of clockwise rotation to direction vector

return result of applying a single unit of clockwise rotation to direction vector
sourceraw docstring

rotation-counter-clockwiseclj

(rotation-counter-clockwise direction)

return result of applying a single unit of counter-clockwise rotation to direction vector

return result of applying a single unit of counter-clockwise rotation to direction vector
sourceraw docstring

translationclj

(translation position direction)

return result of applying direction vector to position

return result of applying direction vector to position
sourceraw docstring

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

× close