Exemplo n.º 1
0
 //returns true if the bbox described by other intersects with this one
 public bool isOverlappedWith(InvertedAABBox other)
 {
     return(!((other.Top() > this.Bottom()) ||
              (other.Bottom() < this.Top()) ||
              (other.Left() > this.Right()) ||
              (other.Right() < this.Left()) ||
              (other.Front() > this.Back()) ||
              (other.Back() < this.Front())));
 }
Exemplo n.º 2
0
 public Cell(Vector3 topleft, Vector3 botright)
 {
     BBox = new InvertedAABBox(topleft, botright);
 }