Browse Source

AP_Math: added is_zero() method to Vector3

master
Andrew Tridgell 11 years ago
parent
commit
db400ffa51
  1. 3
      libraries/AP_Math/vector3.h

3
libraries/AP_Math/vector3.h

@ -132,6 +132,9 @@ public: @@ -132,6 +132,9 @@ public:
// check if any elements are infinity
bool is_inf(void) const;
// check if all elements are zero
bool is_zero(void) const { return x==0 && y == 0 && z == 0; }
// rotate by a standard rotation
void rotate(enum Rotation rotation);

Loading…
Cancel
Save