forked from processing/processing-web-archive
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcos.xml
More file actions
executable file
·47 lines (34 loc) · 932 Bytes
/
Copy pathcos.xml
File metadata and controls
executable file
·47 lines (34 loc) · 932 Bytes
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
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<root>
<name>cos()</name>
<category>Math</category>
<subcategory>Trigonometry</subcategory>
<usage>Web & Application</usage>
<example>
<image>cos_.gif</image>
<code><![CDATA[
float a = 0.0;
float inc = TWO_PI/25.0;
for(int i=0; i<25; i++) {
line(i*4, 50, i*4, 50+cos(a)*40.0);
a = a + inc;
}
]]></code>
</example>
<description><![CDATA[Calculates the cosine of an angle. This function expects the values of the <b>angle</b> parameter to be provided in radians (values from 0 to PI*2). Values are returned in the range -1 to 1.]]></description>
<syntax><![CDATA[
cos(<kbd>angle</kbd>)
]]></syntax>
<parameter>
<label>angle</label>
<description><![CDATA[float: an angle in radians]]></description>
</parameter>
<returns>float</returns>
<related>
sin()
tan()
</related>
<availability>1.0</availability>
<type>Function</type>
<partof>Core</partof>
</root>