from PyQt6.QtGui import QMatrix4x4
import numpy as np

mat = QMatrix4x4()
mat.translate(0.0, 0.0, -250.0)
mat.rotate(30.0, 1.0, 0.0, 0.0)
mat.rotate(45.0, 0.0, 0.0, 1.0)

# If QMatrix4x4 passes list to uniformMatrix4fv, does it need column-major or row-major?
# When I used numpy: ``mvp.flatten().tolist()`` -> it gave row-major. And it WORKED.
# Let's check QMatrix4x4 data.
data = mat.data()
print("QMatrix4x4 data (length %d):" % len(data))
print(data)

