magSq()

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

実例

シンタックス

magSq()
magSq(vecT)

パラメーター

vecT
p5.Vector:

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

リターン

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!

関連するリファレンス