mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 21:15:33 +08:00
committed by
Mathew Sutcliffe
parent
b0e212998f
commit
2cdc2abeb5
@@ -62,6 +62,15 @@ namespace BlackMisc
|
||||
return rv;
|
||||
}
|
||||
|
||||
/*
|
||||
* Equal, considering equal
|
||||
*/
|
||||
bool CMath::epsilonEqual(double v1, double v2, double epsilon)
|
||||
{
|
||||
if (v1 == v2) return true;
|
||||
return qAbs(v1-v2) <= epsilon;
|
||||
}
|
||||
|
||||
/*
|
||||
* To radians
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user