Skip to content
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

function to get real coordinates in the drawable from the touch event coordinates #33

Closed
wants to merge 1 commit into from

Conversation

shadowofsoul
Copy link

the function transformCoordScale(float x, float y) will give you the real coordinates in the drawables from the Event.x and Event.y of the touch event (curr.x and curr.y in actual code)

…ordinates of the touch event

the function transformCoordScale(float x, float y) will give you the real coordinates in the drawables from the Event.x and Event.y of the touch event
@MikeOrtiz
Copy link
Owner

This is a very useful function. I've implemented a variation of this function called transformCoordTouchToBitmap as a helper function for another feature in commit 6ea602f. And as a public function in 7ab6471. I couldn't pull your request into the dev branch I was working on, but I listed you as a contributor in the README and class heading. Let me know how you'd prefer to be credited: ipsilondev, shadowofsoul, or something else.

-Mike

@MikeOrtiz MikeOrtiz closed this Dec 6, 2013
@shadowofsoul
Copy link
Author

Awesome ! @ipsilondev is ok ! :D

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

Successfully merging this pull request may close these issues.

2 participants