mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +08:00
Initial structure for refactoring, some conversions still missing. Especially required further test cases.
This commit is contained in:
@@ -14,7 +14,7 @@ namespace Math
|
||||
/*
|
||||
* Hypotenuse
|
||||
*/
|
||||
double CMath::hypot(double x, double y)
|
||||
qreal CMath::hypot(qreal x, qreal y)
|
||||
{
|
||||
x = abs(x);
|
||||
y = abs(y);
|
||||
@@ -27,7 +27,7 @@ double CMath::hypot(double x, double y)
|
||||
/*
|
||||
* Real part of cubic root
|
||||
*/
|
||||
double CMath::cubicRootReal(const double x)
|
||||
qreal CMath::cubicRootReal(qreal x)
|
||||
{
|
||||
double result;
|
||||
result = std::pow(std::abs(x), (double)1 / 3);
|
||||
|
||||
Reference in New Issue
Block a user