MCPcopy Index your code
hub / github.com/benfry/processing4 / random3D

Method random3D

core/src/processing/core/PVector.java:261–263  ·  view source on GitHub ↗

Returns 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. @webref pvector:method @usage web_application @return the random PVector @webBrief Make a new 3D unit vector with a random direction @see PVector#rando

()

Source from the content-addressed store, hash-verified

259 * @see PVector#random2D()
260 */
261 static public PVector random3D() {
262 return random3D(null, null);
263 }
264
265
266 /**

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected