MCPcopy Index your code
hub / github.com/benfry/processing4 / setMag

Method setMag

core/src/processing/core/PVector.java:829–833  ·  view source on GitHub ↗

Set the magnitude of this vector to the value used for the len parameter. @webref pvector:method @usage web_application @param len the new length for this vector @webBrief Set the magnitude of the vector

(float len)

Source from the content-addressed store, hash-verified

827 * @webBrief Set the magnitude of the vector
828 */
829 public PVector setMag(float len) {
830 normalize();
831 mult(len);
832 return this;
833 }
834
835
836 /**

Callers

nothing calls this directly

Calls 3

normalizeMethod · 0.95
multMethod · 0.95
multMethod · 0.65

Tested by

no test coverage detected