Open main menu

CDOT Wiki β

Changes

FSOSS 2010/processing.js/vectors

186 bytes added, 21:00, 27 October 2010
no edit summary
<li>Processing has a built-in <b>PVector</b> object for 2D and 3D</li>
</ul>
 
<b>Operations</b><br />
<b>Add</b> two vectors by adding their components [3, 3] + [1, 2] = [4, 5]<br />
<b>Scale</b> a vector by multiplying by a scalar value [1,3] * 2 = [2, 6]<br />
1
edit