magSq()

ベクトルの大きさ(長さ)の二乗を計算します。

実例

シンタックス

magSq()
magSq(vecT)

パラメーター

vecT
p5.Vector:

大きさの二乗を返すベクトル

リターン

Number: ベクトルの大きさの二乗。
Notice any errors or typos? Please let us know. Please feel free to edit src/math/p5.Vector.js and open a pull request!

関連するリファレンス