Lua
C++
Edit

Degrees

This function converts an angle from radians to degrees.

Syntax

Parameter Description
angle angle in radians

Returns

Returns the angle, converted to degrees.

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.