Reference+
Name
mult()
Class
PVector
Description
Multiplies a vector by a scalar. The version of the method that uses a float acts directly on the vector upon which it is called (as in the first example above). The versions that receive both a PVector and a float as arguments are static methods, and each returns a new PVector that is the result of the multiplication operation. Both examples above produce the same visual output.
Syntax
.mult(n).mult(v, n).mult(v, n, target)
Parameters
n(float)the number to multiply with the vectorv(PVector)the vector to multiply by the scalartarget(PVector)PVector in which to store the result
Return
PVector

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.