mag method
( begin auto-generated from PVector_mag.xml )
Calculates the magnitude (length) of the vector and returns the result as a float (this is simply the equation sqrt(xx + yy + z*z).)
( end auto-generated )
@webref pvector:method @usage web_application @brief Calculate the magnitude of the vector @return magnitude (length) of the vector @see PVector#magSq()
Implementation
double mag() {
return math.sqrt(x * x + y * y + z * z);
}