Reference random2D()

random2D()

Creates a new 2D unit vector with a random heading.

Examples

Returns

p5.Vector: new p5.Vector object.
This page is generated from the comments in src/math/p5.Vector.js . Please feel free to edit it and submit a pull request!

Related References