Name 
radians() 
Examples 
deg = 45.0
rad = radians(deg)
print("%.1f degrees is %.2f radians" % (deg, rad))

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 

Related 
degrees()


Updated on Fri Aug 16 21:51:57 2019.