# Negative Array Positions?

**URL:** <https://forum.kirupa.com/t/negative-array-positions/302176>\
**Category:** programming\
**Created:** [December 22, 2009, 7:38pm UTC](https://forum.kirupa.com/t/negative-array-positions/302176 "2009-12-22T19:38:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![flyingmonkey456](https://avatars.discourse-cdn.com/v4/letter/f/e47774/32.png) [@flyingmonkey456](https://forum.kirupa.com/u/flyingmonkey456)\
**Post date:** [December 22, 2009, 7:38pm UTC](https://forum.kirupa.com/t/negative-array-positions/302176/1 "2009-12-22T19:38:53Z")

</div>

I’m building a simple 2D particle physics engine where particles are created in the center of a potentially infinite area and thrown outward. I am having a problem though, it’s impossible for an infinite range of numbers extending only in one direction from zero to have a center and an array is just that. I have thought of several ways to work around this, the one I’m leaning towards is using a different array for each quadrant. Does anyone know a better way?
