Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
wlbksy authored and hyv1001 committed Apr 7, 2022
1 parent 24bb22a commit 3776f18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/source/runtime/core/math/quaternion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ namespace Pilot
// The quaternion representing the rotation is
// q = cos(A/2)+sin(A/2)*(x*i+y*j+z*k)

float sqr_len = std::hypot(x, y, z);
float sqr_len = x * x + y * y + z * z;
if (sqr_len > 0.0)
{
angle = 2.0 * Math::acos(w);
Expand Down

0 comments on commit 3776f18

Please sign in to comment.