Skip to content

Instantly share code, notes, and snippets.

@makochang
Created July 22, 2016 04:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save makochang/9638b5ccc465491dafc27e8735d712af to your computer and use it in GitHub Desktop.
Save makochang/9638b5ccc465491dafc27e8735d712af to your computer and use it in GitHub Desktop.
float deg; //Degree
float rad; //Radian
//180°
deg = 180.0f;
//πラジアン
rad = Mathf.PI;
//180°はπラジアン≒3.141593
Debug.Log(deg * Mathf.Deg2Rad);
//πラジアンは180°
Debug.Log(rad * Mathf.Rad2Deg);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment