File: VIdentMat.c

package info (click to toggle)
acm4 4.7-18
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 4,776 kB
  • ctags: 1,621
  • sloc: ansic: 16,777; makefile: 364; sh: 31
file content (25 lines) | stat: -rw-r--r-- 342 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include "Vlib.h"

static VMatrix ident = {
	1.0, 0.0, 0.0, 0.0,
	0.0, 1.0, 0.0, 0.0,
	0.0, 0.0, 1.0, 0.0,
	0.0, 0.0, 0.0, 1.0
	};

void
VIdentMatrix (Mtx)
VMatrix *Mtx;
{
#ifdef notdef
	short I, J;

	for (I=0; I<4; ++I)
		for (J=0; J<4; ++J)
			if (I == J)
				(*Mtx).m[I][J] = 1.0;
			else
				(*Mtx).m[I][J] = 0.0;
#endif
	*Mtx = ident;
}