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; }
public bool Intersects(Rect3 rect) { return(x >= rect.left && x <= rect.right && y >= rect.bottom && y <= rect.top && z >= rect.back && z <= rect.front); }