title: Euclidean distance to calculate if something is near something
body: <p>currently i have using a framework and it has a function called distance2D, and it has this description:</p>
  
  <blockquote>
    <p>Calculate the Euclidean distance
    between two points (considering a
    point as a vector object). Disregards
    the Z component of the vectors and is
    thus a little faster.</p>
  </blockquote>
  
  <p>and this is how i use it</p>
  
  <pre><code>if(g.getCenterPointGlobal().distance2D(target.getCenterPointGlobal()) &gt; 1)
     System.out.println("Near");
  </code></pre>
  
  <p>i have totally no idea what a Euclidean distance is, i am thinking that it can be used to calculate how far 2 points are? because i am trying to compare distance between 2 objects and if they are near within a certain range i want to do something. how would i be able to use this?</p>