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) .) @webref pvector:method @usage web_application @webBrief Calculate the magnitude of the vector @return magnitude (length) of the vector @see PVector#magSq
()
| 394 | * @see PVector#magSq() |
| 395 | */ |
| 396 | public float mag() { |
| 397 | return (float) Math.sqrt(x*x + y*y + z*z); |
| 398 | } |
| 399 | |
| 400 | |
| 401 | /** |
no test coverage detected