title: Convert negative polygons to positive coordinates - Javascript
body: <p>I want to keep my points(x, y) always positive.</p>
  
  <p>I have an array with these values:</p>
  
  <pre><code>(points) [-916, 214, 10, 214, 10, 362, 200, 362, 200, 764, -916, 764]
              X    Y    X   Y    X   Y    X    Y    X    Y     X    Y
  </code></pre>
  
  <p>Is there a algorithm that can shift these points to their origin so that the coordinates stay always positive?</p>