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

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

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

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

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

$endfor