リファレンス fromAngles()

fromAngles()

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

実例

シンタックス

fromAngles(theta, phi, [length])

パラメーター

theta
Number:

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

phi
Number:

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

length
Number:

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

リターン

p5.Vector: 新しい p5.Vector オブジェクト。
This page is generated from the comments in src/math/p5.Vector.js . Please feel free to edit it and submit a pull request!

関連するリファレンス