Creates a new 3D unit vector with a random heading.
add
Adds to a vector's x, y, and z components.
angleBetween
Calculates the angle between two vectors.
array
Returns the vector's components as an array of numbers.
clampToZero
Replaces the components of a p5.Vector that are very close to zero with zero.
Looking for the old p5.js site? Find it here!