Beispiel #1
0
 public bool Intersects(SharpDX.RectangleF rect)
 {
     var testRect = new SharpDX.RectangleF(Owner.Transform.Translation.X - OriginX, Owner.Transform.Translation.Y - OriginY, BaseWidth, BaseHeight);
     bool contains = false;
     rect.Contains(ref testRect, out contains);
     bool intersects = rect.Intersects(testRect);
     return contains || intersects;
 }