弧度和角度
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Test15 : MonoBehaviour
{
private float angle = 30f;
private float rad = 0.5f;
void Update()
{
if (Input.GetKeyDown(KeyCode.A))
{
Debug.LogError(Mathf.Rad2Deg + "<>" + (360 / (2 * Mathf.PI)));
Debug.LogError(Mathf.Deg2Rad + "<>" + (2 * Mathf.PI) / 360);
Debug.LogError(Mathf.Deg2Rad * (Mathf.Rad2Deg));
Debug.LogError(Mathf.Sin(angle / Mathf.Rad2Deg));
Debug.LogError(Mathf.Sin(angle * Mathf.Deg2Rad));
Debug.LogError(Mathf.Asin(rad)* Mathf.Rad2Deg);
}
}
}