1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-09-20 09:04:44 +00:00
qb64/internal/c/User Mods/Steve Stuff/convert_angle.cpp
SMcNeill 6e01fc8dce Altered string compare routines (<,<=,>,>=) so they don't give false results with CHR$(0).
Added new _STRCMP and _STRICMP commands for quick string comparisons.
Cleaned up QB64 to finish removing the QUI (quick user insert) code and folders.
Altered UCASE and LCASE routines to be faster in some situations for us.
2014-09-22 08:19:03 -04:00

28 lines
750 B
C++

// ******************************************************************************************************
// ** Angle Conversion Formulas
// ******************************************************************************************************
double func_deg2rad (double value) {
return (value * 0.01745329251994329576923690768489);
}
double func_rad2deg (double value) {
return (value * 57.29577951308232);
}
double func_deg2grad (double value) {
return (value * 1.111111111111111);
}
double func_grad2deg (double value) {
return (value * 0.9);
}
double func_rad2grad (double value) {
return (value * 63.66197723675816);
}
double func_grad2rad (double value) {
return (value * .01570796326794896);
}