mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +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
|
||||
|
||||
Reference in New Issue
Block a user