2Dベクトルを、その大きさを変えずに特定の角度に回転させます。
慣例により、正のx軸の角度は0です。角度は時計回りに増加します。
ベクトルがcreateVector()で作成された場合、 setHeading()は現在のangleMode()の 単位を使用します。
実例
シンタックス
setHeading(angle)
パラメーター
angle
Number:
回転の角度。
This page is generated from the comments in src/math/p5.Vector.js . Please feel free to edit it and submit a pull request!