Browse Source

Type cast remaining integer

master
kamilritz 5 years ago committed by Julian Kent
parent
commit
a37b91c96a
  1. 12
      matrix/Dcm.hpp
  2. 2
      matrix/Quaternion.hpp

12
matrix/Dcm.hpp

@ -104,13 +104,13 @@ public: @@ -104,13 +104,13 @@ public:
const Type cd = c * d;
const Type dd = d * d;
dcm(0, 0) = aa + bb - cc - dd;
dcm(0, 1) = 2 * (bc - ad);
dcm(0, 2) = 2 * (ac + bd);
dcm(1, 0) = 2 * (bc + ad);
dcm(0, 1) = Type(2) * (bc - ad);
dcm(0, 2) = Type(2) * (ac + bd);
dcm(1, 0) = Type(2) * (bc + ad);
dcm(1, 1) = aa - bb + cc - dd;
dcm(1, 2) = 2 * (cd - ab);
dcm(2, 0) = 2 * (bd - ac);
dcm(2, 1) = 2 * (ab + cd);
dcm(1, 2) = Type(2) * (cd - ab);
dcm(2, 0) = Type(2) * (bd - ac);
dcm(2, 1) = Type(2) * (ab + cd);
dcm(2, 2) = aa - bb - cc + dd;
}

2
matrix/Quaternion.hpp

@ -436,7 +436,7 @@ public: @@ -436,7 +436,7 @@ public:
if (theta < Type(1e-10)) {
q(0) = Type(1);
q(1) = q(2) = q(3) = 0;
q(1) = q(2) = q(3) = Type(0);
return;
}

Loading…
Cancel
Save