hi mendake,
first of all it seems you are working on rotations ... let me quide you to following post for detailed rotation informations :
http://www.truevision3d.com/phpBB2/viewtopic.php?t=6136secondly i will recommend you to use axiom.mathlib for matrix , quaternion , vector and such operations ... it's for c# and very good math library.
for a rotation example in c#, you can look at
http://www.truevision3d.com/phpBB2/viewtopic.php?t=6045 ... this is very good sample for both programming structure and rotation examples ...
and for exracting rotation axis ;
http://www.truevision3d.com/phpBB2/viewtopic.php?p=41760#41760 ... there are links for information on matrix & quaternions ...