processing / processing-android-archive

96 stars 50 forks source link

PVector.set(float float) method does not exist as it should according to documentation and java mode #47

Closed smoothmango closed 11 years ago

smoothmango commented 11 years ago

In Android mode, the PVector class does not have the same convenience method signature for the set() method.

PVector v;
v = new PVector();
v.set(10.0, 20.0);

will result in the compile error:

cannot find symbol [javac] symbol : method set(float,float) [javac] location: class processing.core.PVector

This error is not present in java mode, and is rectified in android mode by supplying three floats to the set() method: set(float, float, float) Recommend adding set(float, float) for consistency with java mode.

boubpopsyteam commented 11 years ago

See https://github.com/processing/processing-android/pull/42 :)

shiffman commented 11 years ago

@codeanticode @benfry I think this happened b/c I made some updates to PVector, but I did not realize I needed to update Android mode as well. Would you like me to make sure they are aligned or does this process happen separately?

benfry commented 11 years ago

Now integrated for the next release.