mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 14:55:36 +08:00
committed by
Mathew Sutcliffe
parent
f49341841e
commit
b0e212998f
@@ -62,6 +62,21 @@ namespace BlackMisc
|
||||
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
|
||||
|
||||
@@ -121,6 +121,21 @@ namespace BlackMisc
|
||||
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:
|
||||
/*!
|
||||
* \brief No objects, just static
|
||||
|
||||
Reference in New Issue
Block a user