リファレンス fromAngles()

fromAngles()

ISO球面角のペアから新しい3Dベクトルを作成します。

実例

シンタックス

fromAngles(theta, phi, [length])

パラメーター

theta
Number:

極角(ラジアン)(0は上方向)。

phi
Number:

方位角(ラジアン) (0は画面の外側方向)。

length
Number:

新しいベクトルの長さ(デフォルトは1)。

リターン

p5.Vector: 新しい p5.Vector オブジェクト。
Notice any errors or typos? Please let us know. Please feel free to edit src/math/p5.Vector.js and open a pull request!

関連するリファレンス