Created
September 3, 2015 06:53
-
-
Save yishai-glide/61addecd633d0b89d18c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Point mCenter; | |
float mRadious; | |
public float animateToX(Point src, float deltaX) { | |
float newX = src.x + deltaX; | |
float newY = mCenter.y + Math.sqrt(Math.pow(mRadious, 2) - Math.pow(newX - mCenter.x), 2)); | |
return newY; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment