Tuesday, January 10, 2012

UI_LinConBelt

Testing a class that takes the original position of objects
and makes them scroll to swap positions with each other.
Going to use in a "slideShow" type portfolio layout...
Unfortunately... the new "goto" command only moves forward to it's target...
I need to fix this... Possible quick hack may be to emulate the forward
or backward button pressing the amount of times needed to get to the target.

EDIT: Fixed. Made a utility that that finds the closest distance between two
points on a circle. Or rather, a tessellating/wrapping range of numbers.

Example: On the range 0-10, the closest distance from 3 to 10 is 4.
3,2,1,0,10 is shifting 4 places from the number 3.


No comments:

Post a Comment