示例#1
0
        public bool IsCollided(CircleGameObject circle)
        {
            var distance = Math.Sqrt(Math.Pow(this.Position.X - circle.Position.X, 2)
                                     + Math.Pow(this.Position.Y - circle.Position.Y, 2));

            return(distance < this.Radius + circle.Radius);
        }
 public bool IsCollided(CircleGameObject circle)
 {
     return(circle.IsCollided(this));
 }