title: Select data by euclidean distance with awk
body: <p>I have a big ASCII datafile and want to select the data by the Euclidean distance MINDISTANCE=5.2 to some point (x0, y0, z0)=(1,2,3).
  In other words if(sqrt((x0-v2)^2+(y0-v3)^2+(z0-v4)^2))>MINDISTANCE) then print the line ($0), otherwise goto next line and test the condition ... </p>
  
  <p>Input </p>
  
  <pre><code>#v1  v2  v3   v4
  0    1    2    3        
  1    4    5    6       
  2    10   10   17       
  3    2    3    4
  4    20   20   15        
  5    20   88   16     
  6    20   99   17
  7    20   20   22
  8    1    2    3
  9    10   10   20
  </code></pre>
  
  <p>Output </p>
  
  <pre><code>2    10   10   17       
  4    20   20   15        
  5    20   88   16     
  6    20   99   17
  7    20   20   22
  9    10   10   20
  </code></pre>
  
  <p>I have seen, that the calculation of sqrt is possible in
  <a href="https://stackoverflow.com/questions/38575282/attempted-to-use-awk-sqrt-but-only-returns-0">Attempted to use awk sqrt but only returns 0</a></p>
  
  <p>Otherwise the above metioned condition could be changed to 
  if(((x0-v2)^2+(y0-v3)^2+(z0-v4)^2))>MINDISTANCE^2) then print the line ($0), otherwise goto next line and test the condition ... </p>