/** * Make a new 2D unit vector with a random direction * using Processing's current random number generator * @param parent current PApplet instance * @return the random PVector */ static public PVector random2D(PApplet parent) { return random2D(null,parent); }
/** * Make a new 2D unit vector with a random direction * using Processing's current random number generator * @param parent current PApplet instance * @return the random PVector */ static public PVector random2D(PApplet parent) { return random2D(null, parent); }
/** * 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 */ static public PVector random2D(PVector target) { return random2D(target, null); }
/** * 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 */ static public PVector random2D(PVector target) { return random2D(target,null); }
/** * ( begin auto-generated from PVector_random2D.xml ) * * Make a new 2D unit vector with a random direction. If you pass in "this" * as an argument, it will use the PApplet's random number generator. You can * also pass in a target PVector to fill. * * @webref pvector:method * @usage web_application * @return the random PVector * @brief Make a new 2D unit vector with a random direction. * @see PVector#random3D() */ static public PVector random2D() { return random2D(null,null); }
/** * ( begin auto-generated from PVector_random2D.xml ) * * Make a new 2D unit vector with a random direction. If you pass in "this" * as an argument, it will use the PApplet's random number generator. You can * also pass in a target PVector to fill. * * @webref pvector:method * @usage web_application * @return the random PVector * @brief Make a new 2D unit vector with a random direction. * @see PVector#random3D() */ static public PVector random2D() { return random2D(null, null); }