aboutsummaryrefslogtreecommitdiff
path: root/pkg/proto/vol/src/im3dtran/txyz3.gx
blob: 619734a1b185b5794513ed745a44cda3112cec87 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$for (silrdx)

# TXYZ3 -- Generic 3d transpose, x->x, y->z, z->y.  The arrays need not be
# identical.

procedure txyz3$t (a, b, nx, ny, nz)

PIXEL	a[nx, ny, nz], b[nx, nz, ny]
int	nx, ny, nz, x, y, z

begin
	do x = 1, nx
	   do y = 1, ny
	       do z = 1, nz
		   b[x, z, y] = a[x, z, y]
end

$endfor