random2D_v2 static method

PVector random2D_v2(
  1. PVector target
)

Set a 2D vector to a random unit vector with a random direction @param target the target vector (if null, a new vector will be created) @return the random PVector

Implementation

static PVector random2D_v2(PVector target) {
  return random2D_v3(target, null);
}