Sporkinator

Overlappping Circles

Jan 13th, 2012
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var x1, y1, x2, y2, radius;
  2. x1 = x;
  3. y1 = y;
  4. x2 = other.x;
  5. y2 = other.y;
  6. radius = max(r, other.r);
  7. return (point_distance(x1, y1, x2, y2) < radius);
Advertisement
Add Comment
Please, Sign In to add comment