Rotating my volume using setUserMatrix results in a skewed volume

Thanks for the response Paulo,

You were correct, and switching my equation to include -Math.sin() fixed the skewing issue.

However, my volume is still rotating around a point which is not at the center of my volume, making it disappear off screen after a couple degrees of rotation. I have tried using the method setOrigin(), which, from the documentation, is supposed to “set the point about which all rotations take place”. Prop3D | vtk.js

I run the command volume.setOrigin(volume.getCenter()) before performing my rotation, and yet this seems to have no affect on the point which the rotation is taking place from. I can run volume.getOrigin() before and after setting it, and see that the origin has changed to what I set it, and yet it does not seem to make a difference.

Is there any other way I can change the point which my volume rotates around? Or am I simply using the method setOrigin incorrectly? Thanks again