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.");
}
}
本文介绍Unity中弧度到度的转换常量Rad2Deg,详细解释其概念和计算方式,并通过C#代码示例展示如何使用该常量进行角度单位的转换。

1203

被折叠的 条评论
为什么被折叠?



