[comp.graphics] Another Graphics Gems bug ....

paul@taniwha.UUCP (Paul Campbell) (09/12/90)

I typed in the matrix inversion code from Graphics Gems today (page 766)
and spend a while banging my head against a wall trying to find out why
it didn't work. Turns out there is a tiny typo - it calculates:

	 -1	         1
	A	= -------------- adjoint A
		  det adjoint A

instead of:

	 -1	    1
	A	= ----- adjoint A
		  det A

To fix it change the line on page 766:

	det = det4x4(out);

to:

	det = det4x4(in);



	Paul

-- 
Paul Campbell    UUCP: ..!mtxinu!taniwha!paul     AppleLink: CAMPBELL.P
What most people don't realize is that those plastic cover slips that your 3
inch floppies come in are actually condoms for protecting your computer from
harmfull computer viruses - practice safe computing ..... :-)