Exemple #1
0
 public void Intersects(Rect3 rect, out bool result)
 {
     result = x >= rect.left && x <= rect.right && y >= rect.bottom && y <= rect.top && z >= rect.back && z <= rect.front;
 }
Exemple #2
0
 public bool Intersects(Rect3 rect)
 {
     return(x >= rect.left && x <= rect.right && y >= rect.bottom && y <= rect.top && z >= rect.back && z <= rect.front);
 }