Mathf.Deg2Rad Manual     Reference     Scripting  
Scripting > Runtime Classes > Mathf
Mathf.Deg2Rad

static var Deg2Rad : float

Description

Degrees-to-radians conversion constant (Read Only).

This is equal to (PI * 2) / 360.

// convert 30 degrees to radians
var deg = 30.0;
var rad = deg * Mathf.Deg2Rad;

See Also: Rad2Deg constant.