delorie.com/archives/browse.cgi | search |
Date: | Wed, 1 Jul 1998 23:33:03 -0500 (CDT) |
From: | Andrew Deren <aderen AT eecs DOT uic DOT edu> |
To: | djgpp <djgpp AT delorie DOT com> |
Subject: | Rotating 2d array |
Message-ID: | <Pine.GSO.3.96.980701233047.8788A-100000@oscar.eecs.uic.edu> |
MIME-Version: | 1.0 |
Can someone help me figure an algo for rotating by 90 degrees a 2 dimensional array. Let's say I have an array 20x20 and I want to rotate it by 90 degrees either to the left or right, but only some part of it let's say from (3,3) to (9,9). Can anyone help me figure it out? Thanks in advance.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |