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:

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

I hope to hear from anyone soon, thanks.