Education/Projects/ProcessingForTheWeb/PVector: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 6: Line 6:


*Note: Functional but not completed as of Oct 23rd 2009
*Note: Functional but not completed as of Oct 23rd 2009
**Note: Completed as of Nov 20th 2009


<br>
<br>
Line 19: Line 20:
|-
|-
| [https://wiki.mozilla.org/index.php?title=Education/Projects/ProcessingForTheWeb/PVector/set set()]
| [https://wiki.mozilla.org/index.php?title=Education/Projects/ProcessingForTheWeb/PVector/set set()]
| Functional, passing an object as a parameter not tested.
| Functional.
|-
|-
| [https://wiki.mozilla.org/index.php?title=Education/Projects/ProcessingForTheWeb/PVector/get get()]  
| [https://wiki.mozilla.org/index.php?title=Education/Projects/ProcessingForTheWeb/PVector/get get()]  
| Not tested, having trouble with returning objects.
| Functional.
|-
|-
| [https://wiki.mozilla.org/index.php?title=Education/Projects/ProcessingForTheWeb/PVector/mag mag()]  
| [https://wiki.mozilla.org/index.php?title=Education/Projects/ProcessingForTheWeb/PVector/mag mag()]  
| Functional
| Functional.
|-
|-
| [https://wiki.mozilla.org/index.php?title=Education/Projects/ProcessingForTheWeb/PVector/add add()]  
| [https://wiki.mozilla.org/index.php?title=Education/Projects/ProcessingForTheWeb/PVector/add add()]  
| Functional, having trouble with returning objects.
| Functional.
|-
|-
| [https://wiki.mozilla.org/index.php?title=Education/Projects/ProcessingForTheWeb/PVector/sub sub()]  
| [https://wiki.mozilla.org/index.php?title=Education/Projects/ProcessingForTheWeb/PVector/sub sub()]  
| Functional, having trouble with returning objects.
| Functional.
|-
|-
| [https://wiki.mozilla.org/index.php?title=Education/Projects/ProcessingForTheWeb/PVector/mult mult()]  
| [https://wiki.mozilla.org/index.php?title=Education/Projects/ProcessingForTheWeb/PVector/mult mult()]  
| Functional, having trouble with returning objects.
| Functional.
|-
|-
| [https://wiki.mozilla.org/index.php?title=Education/Projects/ProcessingForTheWeb/PVector/div div()]  
| [https://wiki.mozilla.org/index.php?title=Education/Projects/ProcessingForTheWeb/PVector/div div()]  
| Functional, having trouble with returning objects.
| Functional.
|-
|-
| [https://wiki.mozilla.org/index.php?title=Education/Projects/ProcessingForTheWeb/PVector/dist dist()]  
| [https://wiki.mozilla.org/index.php?title=Education/Projects/ProcessingForTheWeb/PVector/dist dist()]  
| Not tested, having trouble with returning objects.
| Functional.
|-
|-
| [https://wiki.mozilla.org/index.php?title=Education/Projects/ProcessingForTheWeb/PVector/dot dot()]  
| [https://wiki.mozilla.org/index.php?title=Education/Projects/ProcessingForTheWeb/PVector/dot dot()]  
| Not tested, having trouble with returning objects.
| Functional.
|-
|-
| [https://wiki.mozilla.org/index.php?title=Education/Projects/ProcessingForTheWeb/PVector/cross cross()]  
| [https://wiki.mozilla.org/index.php?title=Education/Projects/ProcessingForTheWeb/PVector/cross cross()]  
| Not tested, having trouble with returning objects.
| Functional.
|-
|-
| [https://wiki.mozilla.org/index.php?title=Education/Projects/ProcessingForTheWeb/PVector/normalize normalize()]  
| [https://wiki.mozilla.org/index.php?title=Education/Projects/ProcessingForTheWeb/PVector/normalize normalize()]  
Line 58: Line 59:
|-
|-
| [https://wiki.mozilla.org/index.php?title=Education/Projects/ProcessingForTheWeb/PVector/array array()]  
| [https://wiki.mozilla.org/index.php?title=Education/Projects/ProcessingForTheWeb/PVector/array array()]  
| Not tested, but should be functional.
| Functional.
|}
|}


<br>
<br>

Latest revision as of 08:14, 30 November 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
    • Note: Completed as of Nov 20th 2009


Functions

The object comes with the following functions:

Function Status
set() Functional.
get() Functional.
mag() Functional.
add() Functional.
sub() Functional.
mult() Functional.
div() Functional.
dist() Functional.
dot() Functional.
cross() Functional.
normalize() Functional.
limit() Functional.
angleBetween() Functional.
array() Functional.