Common/Matrix: Fix Quaternion Norm function.

This commit is contained in:
Jordan Woyak 2022-10-10 21:16:35 -05:00
parent a056a1366f
commit 6eb1f8beba
1 changed files with 1 additions and 1 deletions

View File

@ -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