Skip to content

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

Closed
studioijeoma opened this issue Sep 4, 2014 · 6 comments
Closed

p5.Vector.lerp static function #355

studioijeoma opened this issue Sep 4, 2014 · 6 comments

Comments

@studioijeoma
Copy link

It'd be great to have a static lerp function like in Processing for cases when you don't want to modify the vector.

@studioijeoma studioijeoma changed the title p5.Vector.` static function p5.Vector.lerp static function Sep 4, 2014
@shiffman
Copy link
Member

shiffman commented Sep 5, 2014

It's in there! https://github.com/lmccart/p5.js/blob/master/src/objects/p5.Vector.js#L594

Is it missing from documentation?

@lmccart
Copy link
Member

lmccart commented Sep 5, 2014

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?

@lmccart
Copy link
Member

lmccart commented Sep 5, 2014

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

@shiffman
Copy link
Member

shiffman commented Sep 5, 2014

I think that's a good plan!

@lmccart
Copy link
Member

lmccart commented Sep 5, 2014

closing this, added the documentation todo here: https://github.com/lmccart/p5.js/issues/346

@studioijeoma
Copy link
Author

Oops just seeing this... didn't think to look at the src but good to see you found a doc issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants