   else
     if y < 0 then 2 * PI - theta else theta
 
-# calculates the euclidean distance between two things
-euclid = ( t1, t2 ) ->
-  x = t1.x - t2.x
-  y = t1.y - t2.y
-  sqrt x*x + y*y
-
 grep = ( ar, f ) ->
   x for x in ar when f(x)
 

    copy
  else
    obj

# randomization utility
shuffle = (ar, dup=false) ->

# claim namespace
window.dfh ?= {}

# constants
PI  = Math.PI
