레퍼런스 array()

array()

Returns the vector's components as an array of numbers.

예제

구문

array()
array(v)

매개변수

v
p5.Vector:

the vector to convert to an array

Returns

Number[]: array with the vector's components.
Notice any errors or typos? Please let us know. Please feel free to edit src/math/p5.Vector.js and open a pull request!

관련 레퍼런스