 class HuffmanNodeCollection extends NodeCollection
   constructor: (shape) ->
     super shape
-
-  copyNodesFrom: (nc) ->
-    @nodes = nc.nodes
 
   mousedown: (pos, idx, t) ->
     for n in @nodes

    

class ShannonFanoNodeCollection extends NodeCollection


lerp2d = (t, p0, p1) ->
  if t < 0
    t = 0

      if @reconstruct_as?
        newcollection = new @reconstruct_as(this.shape)
        newcollection.copyNodesFrom(this)
        delete @reconstruct_as
        return newcollection
      else
        return this
