MCPcopy Index your code
hub / github.com/processing/processing / magSq

Method magSq

core/src/processing/core/PVector.java:436–438  ·  view source on GitHub ↗

( 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

()

Source from the content-addressed store, hash-verified

434 * @see PVector#mag()
435 */
436 public float magSq() {
437 return (x*x + y*y + z*z);
438 }
439
440
441 /**

Callers 1

limitMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected