forked from processing/processing-web-archive
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHALF_PI.xml
More file actions
executable file
·54 lines (34 loc) · 942 Bytes
/
Copy pathHALF_PI.xml
File metadata and controls
executable file
·54 lines (34 loc) · 942 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
48
49
50
51
52
53
54
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<root>
<name>HALF_PI (1.57079...)</name>
<category>Constants</category>
<subcategory></subcategory>
<usage>Web & Application</usage>
<example>
<image>HALF_PI.gif</image>
<code><![CDATA[
float f = 0.0;
beginShape(POLYGON);
while(f < HALF_PI) {
vertex(width/2 + cos(f)*40, height/2 + sin(f)*40);
f += PI/12.0;
}
endShape();
]]></code>
</example>
<description><![CDATA[HALF_PI is a mathematical constant with the value 1.57079632679489661923. It is half the ratio of the circumference of a circle to its diameter. It is useful in combination with the trigonometric functions <b>sin()</b> and <b>cos()</b>. ]]></description>
<syntax></syntax>
<parameter>
<label></label>
<description></description>
</parameter>
<returns></returns>
<related>
PI
TWO_PI
QUARTER_PI
</related>
<availability>1.0</availability>
<type>Constant</type>
<partof>Core</partof>
</root>