Beispiel #1
0
 public bool IsItHit(BlueBall blueBall)
 {
     return(((Location.X - blueBall.Location.X) * (Location.X - blueBall.Location.X) +
             (Location.Y - blueBall.Location.Y) * (Location.Y - blueBall.Location.Y)) < 2 * 2 * Radius * Radius);
 }
Beispiel #2
0
 public Balls(Point mouseLoc)
 {
     redBalls = new List <RedBall>();
     blueBall = new BlueBall(mouseLoc);
 }