rad2deg
This function converts the radian values returned by angle functions to degrees.
function int rad2deg (int rad) { return FixedDiv(rad, 0.0174532925); }
This example prints the player's view pitch into degrees.
script 1 (void) { Print(f:rad2deg(GetActorPitch(0)); }
This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.