Ejemplo n.º 1
0
        public static bool Overlaps(Circle circ, Box box)
        {
            var distance = circ.Center - circ.Center.Clamp(box.Min, box.Max);

            return(distance.LengthSquared() < circ.Radius * circ.Radius);
        }
Ejemplo n.º 2
0
 public static bool Overlaps(Circle circ, Polygon poly)
 {
     return(Overlaps(poly, circ));
 }
Ejemplo n.º 3
0
 public static bool Overlaps(Box box, Circle circ)
 {
     return(Overlaps(circ, box));
 }