Lua
C++
Edit

Radians

This function converts an angle from degrees to radians.

Syntax

Parameter Description
angle angle in degrees

Returns

Returns the angle, converted to radians.

Example

#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;
}
Copyright © 2024 Ultra Software.
All rights reserved.