I didn't need to do it myself, but given that you know the angle and
you know the drag vector, you can use a rotation matrix for that.
This Wikipedia segment should help you out, it even comes with a
picture:
http://en.wikipedia.org/wiki/Rotation_matrix#Rotations_in_two_dimensions
On 27 янв,
You have to rotate the drag direction vector as well as canvas.
Even without looking at your code, the actual drawing code probably
doesn't translate the dragging direction in accordance with the
direction of the device.
On 26 янв, 08:13, Dave Bryson debry...@gmail.com wrote:
I have a map
Thanks for the response! No, my code is not rotating the drag
direction. I'm primary rotating the canvas the map is drawn on. I'm
not sure *how* to rotate the axes used by the touch event. Any
pointers on how to do this would be greatly appreciated!
Thanks again,
Dave
On Jan 26, 8:51 am,
3 matches
Mail list logo