Ref T397, checks on vector to find root cause NaN/inf issue

* sometimes very large numbers (xxE38) in vector
* sometimes vectors which look correct, but exceed [-1,1]
This commit is contained in:
Klaus Basan
2018-10-10 15:03:31 +02:00
parent 4038729e82
commit dec0b12ea2
10 changed files with 98 additions and 9 deletions

View File

@@ -127,6 +127,15 @@ namespace BlackMisc
//! \copydoc Mixin::String::toQString
QString convertToQString(bool i18n = false) const;
//! Check values @{
bool isNaNVector() const;
bool isNaNVectorDouble() const;
bool isInfVector() const;
bool isInfVectorDouble() const;
bool isValidVectorRange() const;
static bool isValidVector(const std::array<double, 3> &v);
//! @}
protected:
//! Can given index be handled?
static bool canHandleIndex(const CPropertyIndex &index);