From 6eb1f8bebaf9b4903349267476305748dcd61974 Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Mon, 10 Oct 2022 21:16:35 -0500 Subject: [PATCH] Common/Matrix: Fix Quaternion Norm function. --- Source/Core/Common/Matrix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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