参考 magSq()

magSq()

Calculates the magnitude (length) of the vector squared.

示例

语法

magSq()
magSq(vecT)

参数

vecT
p5.Vector:

the vector to return the squared magnitude of

返回值

Number: squared magnitude of the 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!

相关参考