Reference array()

array()

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

Examples

Syntax

array()
array(v)

Parameters

v
p5.Vector:

the vector to convert to an array

Notice any errors or typos? Please let us know. Please feel free to edit src/math/p5.Vector.js and open a pull request!

Related References