예제 #1
0
        public void AddBallon(Point Center)
        {
            Ballons b;

            b = new Ballons(Center, RADIUS);
            list.Add(b);
        }
예제 #2
0
        public bool isTouching(Ballons b)
        {
            double distance = Math.Sqrt((Center.X - b.Center.X) * (Center.X - b.Center.X) + (Center.Y - b.Center.Y) * (Center.Y - b.Center.Y));

            return(distance <= Radius + b.Radius);
        }