forked from jdf/processing-py-site
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPVector_dot.xml
More file actions
72 lines (56 loc) · 1.32 KB
/
PVector_dot.xml
File metadata and controls
72 lines (56 loc) · 1.32 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<root>
<name>dot()</name>
<category>PVector</category>
<subcategory>Method</subcategory>
<type></type>
<example>
<noimage />
<code><![CDATA[
v = PVector(10, 20, 0)
d = v.dot(60, 80, 0)
print(d) # Prints "2200.0"
]]></code>
</example>
<example>
<noimage />
<code><![CDATA[
v1 = PVector(10, 20, 0)
v2 = PVector(60, 80, 0)
d = v1.dot(v2)
print(d) # Prints "2200.0"
]]></code>
</example>
<description><![CDATA[
Calculates the dot product of two vectors.
]]></description>
<syntax>
.dot(<c>v</c>)
.dot(<c>x</c>, <c>y</c>, <c>z</c>)
.dot(<c>v1</c>, <c>v2</c>)
</syntax>
<parameter>
<label>v</label>
<description><![CDATA[PVector: any variable of type PVector]]></description>
</parameter>
<parameter>
<label>x</label>
<description><![CDATA[float: x component of the vector]]></description>
</parameter>
<parameter>
<label>y</label>
<description><![CDATA[float: y component of the vector]]></description>
</parameter>
<parameter>
<label>z</label>
<description><![CDATA[float: z component of the vector]]></description>
</parameter>
<parameter>
<label>v1</label>
<description><![CDATA[PVector: any variable of type PVector]]></description>
</parameter>
<parameter>
<label>v2</label>
<description><![CDATA[PVector: any variable of type PVector]]></description>
</parameter>
</root>