Changes

Jump to: navigation, search

FSOSS 2010/processing.js/vectors

66 bytes added, 21:14, 27 October 2010
no edit summary
<b>Addition</b>
<ul>
<li>Add two vectors geometrically by adding Graphically -> add head to tail</li> <li>Add two vectors algebraically by adding their Algebraically -> add components [3, 3] + [1, 2] = [4, 5]</li>
<li>PVector.add(PVector)</li>
</ul>
<b>Scale</b>
<ul>
<li>Scale a vector geometrically by stretching Graphically -> stretch or shrinkingshrink</li> <li>Scale a vector algebraically by multiplying all Algebraically -> multiply components by scalar [1,3] * 2 = [2, 6]</li>
<li>PVector.mult(float)</li>
</ul>
 
<b>Calculate Magnitude</b>
<ul>
<li>Graphically -> measure length</li>
<li>Algebraically -> use Pythagorean theorem</li>
<li>PVector.mag()</li>
</ul>
1
edit

Navigation menu