Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement