You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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), and therefore has no return value. The versions that receive both a PVector and a float as arugments 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.
]]></description>
<syntax>
.mult(<c>n</c>)
.mult(<c>v</c>, <c>n</c>)
.mult(<c>v</c>, <c>n</c>, <c>target</c>)
</syntax>
<parameter>
<label>n</label>
<description><![CDATA[float: the number to multiply with the vector]]></description>
</parameter>
<parameter>
<label>v</label>
<description><![CDATA[PVector: the vector to multiply by the scalar]]></description>
</parameter>
<parameter>
<label>target</label>
<description><![CDATA[PVector: PVector in which to store the result]]></description>