How to get Rotation Matrix 3x3 of Bone

I'm trying to get a 3x3 matrix of the rotation of an object in local. Is this possible in max?

I'm converting a blender script into maxscript and the creator of the script gave me this image on what the matrix values I need are:

http://jpegshare.net/b3/cb/b3cb191d94c332b08e759a80b0aa7e3f.png.html

The rotation matrix 3x3 being what I'm working on now.

I hope to hear from anyone soon, thanks.

Maniczombie