/** * Make a new 3D 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 random3D(PApplet parent) { return random3D(null,parent); }
/** * Make a new 3D 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 random3D(PApplet parent) { return random3D(null, parent); }
/** * Set a 3D 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 random3D(PVector target) { return random3D(target,null); }
/** * Set a 3D 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 random3D(PVector target) { return random3D(target, null); }
/** * ( begin auto-generated from PVector_random3D.xml ) * * Make a new 3D 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 3D unit vector with a random direction. * @see PVector#random2D() */ static public PVector random3D() { return random3D(null,null); }
/** * ( begin auto-generated from PVector_random3D.xml ) * * Make a new 3D 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 3D unit vector with a random direction. * @see PVector#random2D() */ static public PVector random3D() { return random3D(null, null); }