This reference is for Processing 2.0+. If you have a previous version, use the reference included with your software. If you see any errors or have suggestions, please let us know. If you prefer a more technical reference, visit the Processing Javadoc.
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 functions in Processing require their parameters to be specified in radians.

Syntax  radians(degrees) 
Parameters 
degrees 
float: degree value to convert to radians 

Returns  float 
Related  degrees()

Updated on January 29, 2015 08:20:07pm UTC