Advertisement
Guest User

Untitled

a guest
Sep 3rd, 2015
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. Point mCenter;
  2. float mRadious;
  3.  
  4. public float animateToX(Point src, float deltaX) {
  5. float newX = src.x + deltaX;
  6. float newY = mCenter.y + Math.sqrt(Math.pow(mRadious, 2) - Math.pow(newX - mCenter.x), 2));
  7. return newY;
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement