संदर्भ fromAngles()

fromAngles()

Creates a new 3D vector from a pair of ISO spherical angles.

उदाहरण

सिंटैक्स

fromAngles(theta, phi, [length])

पैरामीटर्स

theta
Number:

polar angle in radians (zero is up).

phi
Number:

azimuthal angle in radians (zero is out of the screen).

length
Number:

length of the new vector (defaults to 1).

Returns

p5.Vector: new p5.Vector object.
Notice any errors or typos? Please let us know. Please feel free to edit src/math/p5.Vector.js and open a pull request!

संबंधित संदर्भ