It is hard for me to explain my problem. I have a rectangular prism and it is placed in coordinate system with a random orientation

the rectangular prism has its own normal vector, short plane vector(short edge axis) and long plane vector (long edge axis) like main coordinate system. My job is to rotate that rectangular prism and find out its angles according to its coordinate system NOT the main coordinate system(xyz)

By doing this I can report at the end of the all transformations that the prism is rotated these angles by its short plane vector, long plane vector and normal

This is what I do:

I rotate the rectangular prism according its 3 vectors using rotateWXYZ. Till here it is great.

But at the end of the transformations, I need to report how much the rectangular prism is rotated according to its 3 vectors at start.

After all transformations I call GetOrientation() and it gives angles according to main coordinate system(xyz) But I need to know the angles according to the 3 vectors at start.

Also I call GetOrientationWXYZ() but it gives angle-axis result which is great but it doesn’t work for me. I need to find the angle-axis acording to custom axis

My be they work but I dont know how I can do it, Can anybody guide me.

I feel like I am so close to the solution but