Name

magSq()

Examples
v = PVector(20.0, 30.0, 40.0)
m = v.magSq()
print(m)  # Prints "2900.0"
Description Calculates the magnitude (length) of the vector, squared. This method is often used to improve performance since, unlike mag(), it does not require a sqrt() operation.
Related mag()

Updated on Mon Sep 21 15:53:25 2020.

If you see any errors or have comments, please let us know.