forked from processing/processing-web-archive
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdegrees.xml
More file actions
executable file
·50 lines (30 loc) · 1.01 KB
/
Copy pathdegrees.xml
File metadata and controls
executable file
·50 lines (30 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<root>
<name>degrees()</name>
<category>Math</category>
<subcategory>Trigonometry</subcategory>
<usage>Web & Application</usage>
<example>
<image></image>
<code><![CDATA[
float rad = PI/4;
float deg = degrees(rad);
println(rad + " radians is " + deg + " degrees");
]]></code>
</example>
<description><![CDATA[Converts a radian measurement to its corresponding value in degrees. 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. ]]></description>
<syntax><![CDATA[
degrees(<kbd>angle</kbd>)
]]></syntax>
<parameter>
<label>angle</label>
<description><![CDATA[int or float]]></description>
</parameter>
<returns>float</returns>
<related>
radians()
</related>
<availability>1.0</availability>
<type>Function</type>
<partof>Core</partof>
</root>