레퍼런스 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).

반환값

p5.Vector: new p5.Vector object.

관련 레퍼런스