diff --git a/source/Base/Quaternion.cpp b/source/Base/Quaternion.cpp index 13f6dab4..f4c58bd6 100644 --- a/source/Base/Quaternion.cpp +++ b/source/Base/Quaternion.cpp @@ -12,9 +12,10 @@ namespace SqMod { // ------------------------------------------------------------------------------------------------ -const Quaternion Quaternion::NIL = Quaternion(0); -const Quaternion Quaternion::MIN = Quaternion(std::numeric_limits< Quaternion::Value >::min()); -const Quaternion Quaternion::MAX = Quaternion(std::numeric_limits< Quaternion::Value >::max()); +const Quaternion Quaternion::NIL(0); +const Quaternion Quaternion::MIN(std::numeric_limits< Quaternion::Value >::min()); +const Quaternion Quaternion::MAX(std::numeric_limits< Quaternion::Value >::max()); +const Quaternion Quaternion::IDENTITY(1.0, 0.0, 0.0, 0.0); // ------------------------------------------------------------------------------------------------ SQChar Quaternion::Delim = ','; diff --git a/source/Base/Quaternion.hpp b/source/Base/Quaternion.hpp index 6bde35aa..547031d9 100644 --- a/source/Base/Quaternion.hpp +++ b/source/Base/Quaternion.hpp @@ -23,6 +23,7 @@ struct Quaternion static const Quaternion NIL; static const Quaternion MIN; static const Quaternion MAX; + static const Quaternion IDENTITY; /* -------------------------------------------------------------------------------------------- * The delimiter character to be used when extracting values from strings.