Language \ Environment \ Comparison
 
Index
 
  The Processing 1.0 _ALPHA_ Reference is a work in progress.
If you see any errors or have any comments, please write to: reas at groupc.net
Name  

radians()

   
Examples  
float deg = 45.0; 
float rad = radians(deg); 
println(deg + " degrees is " + rad + " radians"); 

Description   Converts a degree measurement to its corresponding value in radians. Radians and degrees are two ways of measuring the same thing. There are 360 degrees in a circle and 2*PI radians in a circle. For example, 90° = PI/2 = 1.5707964. All trigonometric methods in Processing require their parameters to be specified in radians.
   
Syntax  
radians(angle)
   
Parameters  
angle   int or float

   
Returns   float
   
Usage   Web & Application
   
Related   degrees()
   
© 2004 - 2001 Massachusetts Institute of Technology and Interaction Design Institute Ivrea
Processing is an open project initiated by Ben Fry and Casey Reas