-
Notifications
You must be signed in to change notification settings - Fork 156
Description
I've been working with cgmath, trying to use the Matrix4 and Quaternion structs for some animation related graphics stuff.
I ran into something which required me to create a 4x4 Matrix from a Quaternion. On doing this using Matrix4::from(quaternion), the value of the matrix seemed to be row-major. Is this something that is intended or am I mistaken here? I've only recently started working with quaternions, so there might be a gap in my knowledge in this area.
Since the resultant matrix seemed to be row-major, multiplication with other matrices would give the wrong result. I looked at the source for Matrix::from(<Quaternion>) and Matrix::from_translation<Vector3>, they both seemed to be returning row-major matrices
Would love some help/clarification here. Thanks!