mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-01 21:48:28 -04:00
Math: added is_inf() on vector3f
This commit is contained in:
parent
89a10c584d
commit
1f5095e722
@ -181,6 +181,10 @@ public:
|
|||||||
bool is_nan(void)
|
bool is_nan(void)
|
||||||
{ return isnan(x) || isnan(y) || isnan(z); }
|
{ return isnan(x) || isnan(y) || isnan(z); }
|
||||||
|
|
||||||
|
// check if any elements are infinity
|
||||||
|
bool is_inf(void)
|
||||||
|
{ return isinf(x) || isinf(y) || isinf(z); }
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef Vector3<int16_t> Vector3i;
|
typedef Vector3<int16_t> Vector3i;
|
||||||
|
Loading…
Reference in New Issue
Block a user