jdf / Processing.py-Bugs

A home for all bugs and feature requests about Python Mode for the Processing Development Environment.
41 stars 8 forks source link

PVector.mult method not working properly #186

Open HawkinsJM opened 7 years ago

HawkinsJM commented 7 years ago

When I run the following code I would expect the two print lines to both return the same thing. However, only line 4 prints the correct PVector, but line 3 prints None.


vec = PVector(cos(angle), sin(angle))
print vec.mult(2)
print PVector.mult(vec,2)```
jdf commented 7 years ago

Yep, that's wrong. Thank you.