magSq()

Calculates the magnitude (length) of the vector squared.

उदाहरण

सिंटैक्स

magSq()
magSq(vecT)

पैरामीटर्स

vecT
p5.Vector:

the vector to return the squared magnitude of

Returns

Number: squared magnitude of the vector.
Notice any errors or typos? Please let us know. Please feel free to edit src/math/p5.Vector.js and open a pull request!

संबंधित संदर्भ