From a5a3ee6e7155d18becdb19ef4a683f76100d6393 Mon Sep 17 00:00:00 2001 From: Nigel Stewart Date: Wed, 28 Sep 2022 10:30:14 +1000 Subject: [PATCH] Fix: default to identity quaternion, rather than invalid --- include/E57SimpleData.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/E57SimpleData.h b/include/E57SimpleData.h index 47eb35e..286d554 100644 --- a/include/E57SimpleData.h +++ b/include/E57SimpleData.h @@ -71,7 +71,7 @@ namespace e57 //! @brief Represents a rigid body rotation. struct E57_DLL Quaternion { - double w{ 0. }; //!< The real part of the quaternion. Shall be nonnegative + double w{ 1. }; //!< The real part of the quaternion. Shall be nonnegative double x{ 0. }; //!< The i coefficient of the quaternion double y{ 0. }; //!< The j coefficient of the quaternion double z{ 0. }; //!< The k coefficient of the quaternion