Browse Source

AP_Math: added matrix3 tofloat and todouble

zr-v5.1
Andrew Tridgell 4 years ago
parent
commit
aa03afafa7
  1. 7
      libraries/AP_Math/matrix3.h

7
libraries/AP_Math/matrix3.h

@ -265,6 +265,13 @@ public: @@ -265,6 +265,13 @@ public:
// normalize a rotation matrix
void normalize(void);
Matrix3<double> todouble(void) const {
return Matrix3<double>(a.todouble(), b.todouble(), c.todouble());
}
Matrix3<float> tofloat(void) const {
return Matrix3<float>(a.tofloat(), b.tofloat(), c.tofloat());
}
};
typedef Matrix3<int16_t> Matrix3i;

Loading…
Cancel
Save