Core/Quaternion: Fix Inverse method
This commit is contained in:
parent
2da086b7df
commit
2f2b1f101b
|
|
@ -85,6 +85,7 @@ Nazara Engine:
|
||||||
- Fixed Sound copy which was not copying looping state
|
- Fixed Sound copy which was not copying looping state
|
||||||
- Fixed Billboard bounding volume
|
- Fixed Billboard bounding volume
|
||||||
- Fixed Directory::GetResultSize and Directory::IsResultDirectory on Posix systems
|
- Fixed Directory::GetResultSize and Directory::IsResultDirectory on Posix systems
|
||||||
|
- Fixed Quaternion::Inverse which was not correctly normalizing quaternions
|
||||||
|
|
||||||
Nazara Development Kit:
|
Nazara Development Kit:
|
||||||
- Added ImageWidget (#139)
|
- Added ImageWidget (#139)
|
||||||
|
|
|
||||||
|
|
@ -220,7 +220,7 @@ namespace Nz
|
||||||
T norm = SquaredMagnitude();
|
T norm = SquaredMagnitude();
|
||||||
if (norm > F(0.0))
|
if (norm > F(0.0))
|
||||||
{
|
{
|
||||||
T invNorm = F(1.0) / norm;
|
T invNorm = F(1.0) / std::sqrt(norm);
|
||||||
|
|
||||||
w *= invNorm;
|
w *= invNorm;
|
||||||
x *= -invNorm;
|
x *= -invNorm;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue