capshaw/flock.js — pull request #6 by glenwatson (2014-10-18 03:56:47+00:00)
Title: Uses squared distance instead of distance

Optimization: Math.sqrt() is expensive to calculate.
Turns out it's unneeded.