예제 #1
0
        public bool Intersect(Circle2D other)
        {
            var diff = other.GetCenter() - center;

            return(diff.Length < radius + other.GetRadius());
        }
예제 #2
0
 public bool IntersectCircle(Circle2D circle)
 {
     return(IntersectCircle(circle.GetCenter(), circle.GetRadius()));
 }
예제 #3
0
        public bool Contains(Circle2D other)
        {
            var diff = other.GetCenter() - center;

            return(diff.Length + other.radius < radius);
        }