mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-23 05:45:35 +08:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user