Calculates the magnitude (length) of the vector, squared. This method is often used to improve performance since, unlike mag() , it does not require a sqrt() operation. @webref pvector:method @usage web_application @webBrief Calculate the magnitude of the vector, squared @return squar
()
| 412 | * @see PVector#mag() |
| 413 | */ |
| 414 | public float magSq() { |
| 415 | return (x*x + y*y + z*z); |
| 416 | } |
| 417 | |
| 418 | |
| 419 | /** |