mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 09:15:34 +08:00
committed by
Mathew Sutcliffe
parent
f49341841e
commit
b0e212998f
@@ -62,6 +62,21 @@ namespace BlackMisc
|
|||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* To radians
|
||||||
|
*/
|
||||||
|
double CMath::deg2rad(double degree)
|
||||||
|
{
|
||||||
|
return degree * CMath::PI() / 180.0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* To radians
|
||||||
|
*/
|
||||||
|
double CMath::rad2deg(double radians)
|
||||||
|
{
|
||||||
|
return radians * 180.0 / CMath::PI();
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|||||||
@@ -121,6 +121,21 @@ namespace BlackMisc
|
|||||||
return pi2;
|
return pi2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* \brief Degree to radians
|
||||||
|
* \param degree
|
||||||
|
* \return
|
||||||
|
*/
|
||||||
|
static double deg2rad(double degree);
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* \brief Radians to degrees
|
||||||
|
* \param radians
|
||||||
|
* \return
|
||||||
|
*/
|
||||||
|
static double rad2deg(double radians);
|
||||||
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/*!
|
/*!
|
||||||
* \brief No objects, just static
|
* \brief No objects, just static
|
||||||
|
|||||||
Reference in New Issue
Block a user