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); }
public Collision(Rib rib) { self = rib; rect = new RibRect(rib); times = new Dictionary <Rib, double>(); }
public Collision(Rib rib) { self = rib; rect = new RibRect(rib); times = new Dictionary<Rib, double>(); }
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)); }