forked from processing-js/processing-js.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPVector_array_.html
More file actions
56 lines (49 loc) · 1.29 KB
/
Copy pathPVector_array_.html
File metadata and controls
56 lines (49 loc) · 1.29 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
---
layout: default
---
<table cellpadding="0" cellspacing="0" border="0" class="ref-item">
<tr>
<th scope="row">Class</th>
<td>PVector</td>
</tr>
<tr class="name-row">
<th scope="row">Name</th>
<td><h3>array()</h3></td>
</tr>
<tr class="">
<th scope="row">Examples</th>
<td><div class="example"><pre class="">PVector v = new PVector(10.0, 20.0, 30.0);
float[] f = v.array();
println(f[0]); // Prints "10.0"
println(f[1]); // Prints "20.0"
println(f[2]); // Prints "30.0"</pre></div></td>
</tr>
<tr class="">
<th scope="row">Description</th>
<td><p>Return a representation of this vector as a float array.
This is only for temporary use. If used in any other fashion, the contents should be copied by using the <b>PVector.get()</b> method to copy into your own array.</p></td>
</tr>
<tr class="">
<th scope="row">Syntax</th>
<td><pre><kbd>PVector</kbd>.array()</pre><br /></td>
</tr>
<tr class="">
<th scope="row">Parameters</th>
<td>
<table cellpadding="0" cellspacing="0" border="0">
<tr class="">
<th scope="row">vec</th>
<td>any variable of type PVector</td>
</tr>
</table>
</td>
</tr>
<tr class="">
<th scope="row">Returns</th>
<td>float[]</td>
</tr>
<tr class="">
<th scope="row">Usage</th>
<td>Web & Application</td>
</tr>
</table>