thi.ng is an open source collection of 20+ computational design tools for Clojure & Clojurescript: generative design, data visualization, digital fabrication, linked data, graph processing and more...
This book explains the algorithms behind those collisions using basic shapes like circles, rectangles, and lines so you can implement them into your own projects.