コード例 #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);
 }
コード例 #2
0
 public AABBBoundedBoxItem(Point min, Point max)
 {
     _boundingBox = new AABBBoundingBox(min, max);
 }