diff options
| author | Mai <mathew1800@gmail.com> | 2022-10-12 17:35:50 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-12 17:35:50 +0000 |
| commit | a5fa95adfdef8b45fdbb859af0044b0d1622a680 (patch) | |
| tree | daec0d942dac905a520fb6e3e3686154ccf738bc /Source/Core/Common/Matrix.cpp | |
| parent | 1f8b196d6deed6d807a2afde7978bb9a216fd064 (diff) | |
| parent | bf53e14abe32e60c18122b15529884b9fbb0c413 (diff) | |
Merge pull request #11151 from jordan-woyak/quat-fix
Fix some bad quaternion math.
Diffstat (limited to 'Source/Core/Common/Matrix.cpp')
| -rw-r--r-- | Source/Core/Common/Matrix.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/Common/Matrix.cpp b/Source/Core/Common/Matrix.cpp index 724d28f17f..57be1a3cc4 100644 --- a/Source/Core/Common/Matrix.cpp +++ b/Source/Core/Common/Matrix.cpp @@ -78,7 +78,7 @@ Quaternion::Quaternion(float w, float x, float y, float z) : data(x, y, z, w) float Quaternion::Norm() const { - return data.Dot(data); + return std::sqrt(data.Dot(data)); } Quaternion Quaternion::Normalized() const |
