This function converts an angle from degrees to radians.
Parameter | Description |
---|---|
angle | angle in degrees |
Returns the angle, converted to radians.
#include "UltraEngine.h"
using namespace UltraEngine;
int main(int argc, const char* argv[])
{
float a = 45;
float r = Radians(a);
Print(r);
Print(Degrees(r));
return 0;
}