Пример #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);
        }