Name

mag()

Examples
v = PVector(20.0, 30.0, 40.0)
m = v.mag()
print(m)  # Prints "53.851646423339844"
Description Calculates the magnitude (length) of the vector and returns the result as a float (this is simply the equation sqrt(x*x + y*y + z*z).)
Syntax
.mag()
Related magSq()

Updated on Tue Feb 27 14:07:12 2024.

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