Mathf.Rad2Deg 弧度转度

static var Rad2Deg : float

Description描述
Radians-to-degrees conversion constant (Read Only).
弧度到度的转化常量。(只读)

This is equal to 360 / (PI * 2).
这等于 360 / (PI * 2)。

参考:Deg2Rad 常数

C#

using UnityEngine;using System.Collections;public class example : MonoBehaviour
{
        public float rad = 10.0F;
        void Start()
       {
                float deg = rad * Mathf.Rad2Deg;
                Debug.Log(rad + " radians are equal to " + deg + " degrees.");
        }
}

转载于:https://www.cnblogs.com/feiyanstudio/articles/7326577.html

你可能感兴趣的:(Mathf.Rad2Deg 弧度转度)