-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
p5.Vector.lerp static function #355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It's in there! https://github.com/lmccart/p5.js/blob/master/src/objects/p5.Vector.js#L594 Is it missing from documentation? |
looks like the static methods don't have the @method tags so they're not showing up. before we add them in though, I think I need to do a little tinkering with the docs generation so it can disambiguate between lerp and lerp(static). unless we wanted to name them diff for the documentation? |
ah, I just looked at the processing ref. so it looks like maybe the thing to do is just add more info to the doc for lerp() indicating both static and dynamic use, similar to this: http://processing.org/reference/PVector_lerp_.html |
I think that's a good plan! |
closing this, added the documentation todo here: https://github.com/lmccart/p5.js/issues/346 |
Oops just seeing this... didn't think to look at the src but good to see you found a doc issue. |
It'd be great to have a static lerp function like in Processing for cases when you don't want to modify the vector.
The text was updated successfully, but these errors were encountered: