mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-13 07:49:19 +01:00
Common/Matrix: Fix Quaternion Norm function.
This commit is contained in:
parent
a056a1366f
commit
6eb1f8beba
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user