public static float Rad2Deg ;

Description

Константа для конвертации радианов в градусы (Read Only).

Эквивалентно 360 / (PI * 2).

See Also: константа Deg2Rad

using UnityEngine;

public class MathfRad2Deg : MonoBehaviour { // convert 1 radian to degrees

float rad = 1.0f;

void Start() { float deg = rad * Mathf.Rad2Deg; //This will output 1 radians are equal to 57.29578 degrees Debug.Log(rad + " radians are equal to " + deg + " degrees."); } }
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961