Hi , I have the same requirement, I have to rotate an image of a wheel
as the user moves finger on the wheel on screen. Can u pls tell me how
I can use this code thr? What is cx, cy, mPreviousX, mPreviousY?
Thanks
On Mar 6, 2:56 am, Nathan nathan.d.mel...@gmail.com wrote:
On Mar 5, 3:25 am,
Thanks alot. I sort of had it working yesterday, but I think my math
was a little off, which caused some strange behavior. So I will try
your code.
On 5 mrt, 22:56, Nathan nathan.d.mel...@gmail.com wrote:
On Mar 5, 3:25 am, Bart bvandep...@gmail.com wrote:
Hi, I'd like to display a given
I tested it and it works like a charm :)
I only had to change the -= in this.bearing -= Math.toDegrees(diff)
to +=, otherwise the rotation was inverted.
How do you do the rotation exactly? If I just draw the text onto the
canvas in onDraw(Canvas canvas), and then call canvas.rotate, then
nothing
I use canvas.rotate(-bearing) *before* drawing - after drawing won't
work. I guess that accounts for the negative sign.
Nathan
On Mar 6, 7:21 am, Bart bvandep...@gmail.com wrote:
I tested it and it works like a charm :)
I only had to change the -= in this.bearing -= Math.toDegrees(diff)
to
Bart wrote:
Hi, I'd like to display a given String in a circle (so bend the string
so that the end of the string touches the beginning of the string).
And Then I'd like to let the user rotate the circle by grabbing and
dragging it clockwise or counterclockwise.
Do you guys know what would
I'm doing something similar in my current app. It might not apply
directly because I'm using GL for my drawing and don't have access to
the same API calls. An important thing is to remember that the user is
moving finger diagonally in some cases, so you need to calculate the
angular velocity in
On Mar 5, 3:25 am, Bart bvandep...@gmail.com wrote:
Hi, I'd like to display a given String in a circle (so bend the string
so that the end of the string touches the beginning of the string).
And Then I'd like to let the user rotate the circle by grabbing and
dragging it clockwise or
7 matches
Mail list logo