Replies: 1 comment 3 replies
-
I could not make it a constructor and have it generic, so I added a static method that should take any iterable, hope this is okay mat1 = Ge.Matrix3d.kIdentity
mat1.setToRotation(0.785398, Ge.Vector3d.kZAxis)
mat2 = Ge.Matrix3d.fromCollection(mat1.toTuple())
mat3 = Ge.Matrix3d.fromCollection(mat1.toList())
print(mat2 == mat1 == mat3)
print(mat1, mat2, mat3)
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It would be useful to be able to create an object like
Ge.Matrix3d
directly from a numpy array or just a list of lists.Beta Was this translation helpful? Give feedback.
All reactions