Add an assert to ensure callers don't pass in negative matrices as the resulting quaternion is invalid.