轴转弧度/角度/欧拉角

    public Vector2 CurrentAxis { get; private set; }
    public float CurrentRadian { get { return Mathf.Atan2(CurrentAxis.x, CurrentAxis.y); } }
    public float CurrentDegree { get { return Mathf.Atan2(CurrentAxis.x, CurrentAxis.y) * Mathf.Rad2Deg; } }
    public float CurrentEulerAngles { get { return Mathf.Atan2(CurrentAxis.y, CurrentAxis.x) / Mathf.PI * 180 - 90; } }

你可能感兴趣的:(unity3D,C#样例,角度转换)