   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)
 

    [ x, y ] = @edgePoint point, rad + @radius
    @drawArc x, y, rad, @bodyColor, start, end
  calcTailSize: ->
    size = @radius * @maxAcceleration() / @genes.maxAcceleration[2](@   )
    max 2, size
  calcEarSize: ->
    ratio = @auditoryRange() / @genes.auditoryRange[2]

      plantAffinity: [
        .1
        (t) -> -abs(max( 1, t.plantAffinity())) * 2
        (t) ->  abs(max( 1, t.plantAffinity())) * 2
      ]
    }
  plantAffinity: -> @genes.plantAffinity[0]
