Пример #1
0
 public bool Overlaps(RibRect rect)
 {
     return (min.X <= rect.max.X) && (rect.min.X <= max.X) &&
         (min.Y <= rect.max.Y) && (rect.min.Y <= max.Y);
 }
Пример #2
0
 public Collision(Rib rib)
 {
     self  = rib;
     rect  = new RibRect(rib);
     times = new Dictionary <Rib, double>();
 }
Пример #3
0
 public Collision(Rib rib)
 {
     self = rib;
     rect = new RibRect(rib);
     times = new Dictionary<Rib, double>();
 }
Пример #4
0
 public bool Overlaps(RibRect rect)
 {
     return((min.X <= rect.max.X) && (rect.min.X <= max.X) &&
            (min.Y <= rect.max.Y) && (rect.min.Y <= max.Y));
 }