public abstract bool Collide(BoxMask mask, float dx = 0, float dy = 0);
public bool Intersects(BoxMask mask, float dx = 0, float dy = 0) { return AbsoluteLeft + dx < mask.AbsoluteRight && AbsoluteRight + dx > mask.AbsoluteLeft && AbsoluteBottom + dy > mask.AbsoluteTop && AbsoluteTop + dy < mask.AbsoluteBottom; }
public override bool Collide(BoxMask mask, float dx = 0, float dy = 0) { return mask.Collide(this, -dx, -dy); }
public override bool Collide(BoxMask mask, float dx = 0, float dy = 0) { return Intersects(mask, dx, dy); }