Math: added is_inf() on vector3f

This commit is contained in:
Andrew Tridgell 2012-03-05 15:07:30 +11:00
parent 89a10c584d
commit 1f5095e722

View File

@ -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;