Which convention uses blender to generate the rotation matrix? In other words, i 've an axis system, with the corresponding Euler angles: what i’ve to do to create an object (python, of course) oriented in that way?

Where do i found such math material, or so…??? It’s for the Kloputils 2.0, with a lot of new features, but i am jammed with the calculus!

(v1.0 is at http://usuarios.lycos.es/klopes/enchufes.htm)