( begin auto-generated from PVector_mag.xml ) Calculates the squared magnitude of the vector and returns the result as a float (this is simply the equation (x x + y y + z z) .) Faster if the real length is not required in the case of comparing vectors, etc. ( end auto-generated ) @webref
()
| 434 | * @see PVector#mag() |
| 435 | */ |
| 436 | public float magSq() { |
| 437 | return (x*x + y*y + z*z); |
| 438 | } |
| 439 | |
| 440 | |
| 441 | /** |