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.
This page is generated from the comments in src/math/p5.Vector.js . Please feel free to edit it and submit a pull request!