( begin auto-generated from PVector_add.xml ) Adds x, y, and z components to a vector, adds one vector to another, or adds two independent vectors together. The version of the method that adds two vectors together is a static method and returns a PVector, the others have no return value -- they act
(PVector v)
| 455 | * @brief Adds x, y, and z components to a vector, one vector to another, or two independent vectors |
| 456 | */ |
| 457 | public PVector add(PVector v) { |
| 458 | x += v.x; |
| 459 | y += v.y; |
| 460 | z += v.z; |
| 461 | return this; |
| 462 | } |
| 463 | |
| 464 | |
| 465 | /** |
no test coverage detected