       @normalize lst1
     else
       lst1
-
+        
   #Normalize list: sort cells and offset them to the origin    
   normalize: (lst1) -> @sortXY @normalizeXY lst1
   

    throw new Error "Impossible to rotate vector (#{dx},#{dy}) to the positive direction"


  analyze: (pattern, rule, max_iters = 2048, stop_on_border_hit=true) ->
    throw new Error ("Pattern undefined")  unless pattern
    throw new Error ("Rule undefined")  unless rule
    #sort cells by Y, then by X

      y0 = Math.min(y0, y)
      y1 = Math.max(y1, y)
    [x0, y0, x1, y1]
  
  transform: (lst, tfm, need_normalize = true) ->
    #transform cell block: rotate or flip
