リファレンス fromAngle()

fromAngle()

角度から新しい2Dベクトルを作成します。

実例

シンタックス

fromAngle(angle, [length])

パラメーター

angle
Number:

希望する角度(ラジアン単位)。angleMode()の影響を受けません。

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!

関連するリファレンス