forked from jdf/processing-py-site
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTWO_PI.xml
More file actions
33 lines (26 loc) · 794 Bytes
/
TWO_PI.xml
File metadata and controls
33 lines (26 loc) · 794 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
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<root>
<name>TWO_PI (6.28318...)</name>
<category>Constants</category>
<subcategory></subcategory>
<type></type>
<example>
<image />
<code><![CDATA[
x = width/2
y = height/2
d = width * 0.8
arc(x, y, d, d, 0, QUARTER_PI)
arc(x, y, d-20, d-20, 0, HALF_PI)
arc(x, y, d-40, d-40, 0, PI)
arc(x, y, d-60, d-60, 0, TWO_PI)
]]></code>
</example>
<description><![CDATA[
TWO_PI is a mathematical constant with the value 6.28318530717958647693. It is twice 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>
<related>PI</related>
<related>TWO_PI</related>
<related>HALF_PI</related>
<related>QUARTER_PI</related>
</root>