mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 15:15:50 +08:00
Ref T111, lat/lng/angle changes
* get struct CAngle::DegMinSecFractionalSec to obtain parts * round to epsilon utility functions and fix (qint64)
This commit is contained in:
committed by
Mathew Sutcliffe
parent
77546a46b1
commit
e55480737e
@@ -21,7 +21,6 @@ namespace BlackMisc
|
||||
{
|
||||
namespace Math
|
||||
{
|
||||
|
||||
//! Math utils
|
||||
class BLACKMISC_EXPORT CMathUtils
|
||||
{
|
||||
@@ -103,10 +102,13 @@ namespace BlackMisc
|
||||
//! Random number between low and high
|
||||
static int randomInteger(int low, int high);
|
||||
|
||||
//! Round numToRound to the nearest multiple of multiple
|
||||
//! Round numToRound to the nearest multiple of divisor
|
||||
static int roundToMultipleOf(int value, int divisor);
|
||||
};
|
||||
|
||||
//! Fractional part as integer string, e.g. 3.12 -> 12 / 3.012 -> 012
|
||||
//! \remark because of leading 0 returned as string
|
||||
static QString fractionalPartAsString(double value, int width = -1);
|
||||
};
|
||||
} // namespace
|
||||
} // namespace
|
||||
|
||||
|
||||
Reference in New Issue
Block a user