Ensure direction is always defined for axis angle.

This commit is contained in:
James Goppert 2016-11-30 00:40:55 -05:00
parent 8a94f0f8ac
commit 945edbc58c

View File

@ -79,7 +79,7 @@ public:
Type ang = (Type)2.0f*acosf(q(0));
Type mag = sinf(ang/2.0f);
if (fabsf(ang) < 1e-10f) {
v(0) = 0;
v(0) = 1e-10f;
v(1) = 0;
v(2) = 0;
} else {