mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 08:38:36 -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)
|
||||
{ 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;
|
||||
|
Loading…
Reference in New Issue
Block a user