MCPcopy Index your code
hub / github.com/processing/processing / random3D

Method random3D

core/src/processing/core/PVector.java:275–277  ·  view source on GitHub ↗

( 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

()

Source from the content-addressed store, hash-verified

273 * @see PVector#random2D()
274 */
275 static public PVector random3D() {
276 return random3D(null, null);
277 }
278
279
280 /**

Callers

nothing calls this directly

Calls 5

randomMethod · 0.80
sqrtMethod · 0.80
setMethod · 0.65
cosMethod · 0.45
sinMethod · 0.45

Tested by

no test coverage detected