Education/Projects/ProcessingForTheWeb/PVector: Difference between revisions
< Education | Projects | ProcessingForTheWeb
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
PVector is an object used in Processing. It is being transported to it's counterpart Processing.js. The object has the ability to store x, y and z coordinate attributes while using the functions built into it. More information can be found in it's original reference: [http://processing.org/reference/PVector.html here] | PVector is an object used in Processing. It is being transported to it's counterpart Processing.js. The object has the ability to store x, y and z coordinate attributes while using the functions built into it. More information can be found in it's original reference: [http://processing.org/reference/PVector.html here] | ||
*Note: | *Note: Functional but not completed as of Oct 23rd 2009 | ||
<br> | <br> |
Revision as of 01:05, 25 October 2009
Summary
PVector is an object used in Processing. It is being transported to it's counterpart Processing.js. The object has the ability to store x, y and z coordinate attributes while using the functions built into it. More information can be found in it's original reference: here
- Note: Functional but not completed as of Oct 23rd 2009
Functions
The object comes with the following functions:
Function | Status |
---|---|
set() | Functional, passing an object as a parameter not tested. |
get() | Not tested, having trouble with returning objects. |
mag() | Functional |
add() | Functional, having trouble with returning objects. |
sub() | Functional, having trouble with returning objects. |
mult() | Functional, having trouble with returning objects. |
div() | Functional, having trouble with returning objects. |
dist() | Not tested, having trouble with returning objects. |
dot() | Not tested, having trouble with returning objects. |
cross() | Not tested, having trouble with returning objects. |
normalize() | Functional. |
limit() | Functional. |
angleBetween() | Functional. |
array() | Not tested, but should be functional. |