Penner easing for c++
As I said last week, I’m also using robert penner’s easing equations in openFrameworks, so I’ve ported them to c++.
This has been relatively straightforward, but, as with the actionscript to java conversion, I’ve run into some nuances between languages and I’ve definitely learned the hard way (read “wasting some hours of my life”) why pre and post increment operators can be evil.
For usage, you can have a look at the openFrameworks app provided. If you want to have a quick glance at the types of movement, see the easing applet (p5 version).
Being this a programming exercise, it will have improvable things for sure. I’m thinking of some, but if you know anything, please let me know.
tags:c++ easing openframeworks
2008-03-26 at 10.57 pm
Very nice, and thanks for sharing this. You appear to have an error in the quad function though. All the others are fine, but quad glitches noticeably so the conversion must have gone wrong.
2008-03-26 at 11.14 pm
whoops, thanks for spotting it. I’ll look into it and upload the corrected version.
2008-03-26 at 11.33 pm
hey phil, can you explain what you see? or if the error is in any or the three easing methods? They seem to be ok on my computer.
best!