Beispiel #1
0
 /*
  * Ripped off from https://developer.mozilla.org/en-US/docs/Games/Techniques/3D_collision_detection
  */
 public bool IsIntersecting(AABBBoundingBox other)
 {
     return(Min.X <= other.Max.X && Max.X >= other.Min.X &&
            Min.Y <= other.Max.Y && Max.Y >= other.Min.Y);
 }
 public AABBBoundedBoxItem(Point min, Point max)
 {
     _boundingBox = new AABBBoundingBox(min, max);
 }