Implementation of a 2D visibility determination algorithm in clojurescript