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 Mon Sep 21 15:53:25 2020.

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