deg2rad

This function converts degrees to radians.

 function int deg2rad (int deg)
 {
   return FixedMul(deg, 0.0174532925); 
 }

This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.