# Rotate 2D array 90 degrees?

**URL:** <https://forum.kirupa.com/t/rotate-2d-array-90-degrees/241559>\
**Category:** Uncategorized\
**Created:** [October 15, 2007, 3:50pm UTC](https://forum.kirupa.com/t/rotate-2d-array-90-degrees/241559 "2007-10-15T15:50:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dejanp](https://avatars.discourse-cdn.com/v4/letter/d/e47774/32.png) [@dejanp](https://forum.kirupa.com/u/dejanp)\
**Post date:** [October 15, 2007, 3:50pm UTC](https://forum.kirupa.com/t/rotate-2d-array-90-degrees/241559/1 "2007-10-15T15:50:30Z")

</div>

I am building tile based application which stores it’s objects in 2D array. I would need to rotate it 90 degrees to change angle of looking at it.  
Any idea of how to do this?
