Reference magSq()

magSq()

Calculates the magnitude (length) of the vector squared.

Examples

Syntax

magSq()
magSq(vecT)

Parameters

vecT
p5.Vector:

the vector to return the squared magnitude of

Notice any errors or typos? Please let us know. Please feel free to edit src/math/p5.Vector.js and open a pull request!

Related References