Radians-to-degrees conversion constant (Read Only).
This is equal to 360 / (PI * 2).
See Also: Deg2Rad constant.
#pragma strict public class MathfRad2Deg extends MonoBehaviour { var rad: float = 1.0f; function Start() { var deg: float = rad * Mathf.Rad2Deg; //This will output 1 radians are equal to 57.29578 degrees Debug.Log(rad + " radians are equal to " + deg + " degrees."); } }
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."); } }