src/matrix.js
function transpose (M) {
	return (
		[[M[0][0], M[1][0], M[2][0]],
		 [M[0][1], M[1][1], M[2][1]],
		 [M[0][2], M[1][2], M[2][2]]]
	);
}
function transpose (M) {
	return (
		[[M[0][0], M[1][0], M[2][0]],
		 [M[0][1], M[1][1], M[2][1]],
		 [M[0][2], M[1][2], M[2][2]]]
	);
}
function transpose ( M ) { return ( [ [ M [ 0 ] [ 0 ] , M [ 1 ] [ 0 ] , M [ 2 ] [ 0 ] ] , [ M [ 0 ] [ 1 ] , M [ 1 ] [ 1 ] , M [ 2 ] [ 1 ] ] , [ M [ 0 ] [ 2 ] , M [ 1 ] [ 2 ] , M [ 2 ] [ 2 ] ] ] ) ; }
3x3 matrices operations
3x3 matrices operations