Skip to content

Commit

Permalink
t_quat::set: return a zero rotation instead of a zero quaternion
Browse files Browse the repository at this point in the history
It could be argued that the default constructor for quaternion should
return a zero rotation i.e. {0, 0, 0, 1}, but I decided not to go
there.
  • Loading branch information
timoore committed Sep 25, 2023
1 parent 6e2527c commit d1a376b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/vsg/maths/quat.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ namespace vsg
if (len < epsilon)
{
// ~zero length axis, so reset rotation to zero.
*this = {};
set(0, 0, 0, 1);
return;
}

Expand Down

0 comments on commit d1a376b

Please sign in to comment.