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); }
public Balls(Point mouseLoc) { redBalls = new List <RedBall>(); blueBall = new BlueBall(mouseLoc); }