Reference×
Reference
- [] (array access)
- = (assign)
- catch
- class
- , (comma)
- // (comment)
- {} (curly braces)
- /** */ (doc comment)
- . (dot)
- draw()
- exit()
- extends
- false
- final
- implements
- import
- loop()
- /* */ (multiline comment)
- new
- noLoop()
- null
- () (parentheses)
- popStyle()
- pop()
- private
- public
- pushStyle()
- push()
- redraw()
- return
- ; (semicolon)
- setLocation()
- setTitle()
- setResizable()
- setup()
- static
- super
- this
- thread()
- true
- try
- void
Name
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.
Examples
float deg = 45.0; float rad = radians(deg); println(deg + " degrees is " + rad + " radians");
Syntax
radians(degrees)
Parameters
degrees
(float)
degree value to convert to radians
Return
float
Related

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.