# Box struct

Namespace: [Grasshopper2.Imaging.Raycasting](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.imaging.raycasting.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public struct Box
```

Represents a 2D axis aligned bounding box.

## Constructors

- [Box](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.box/ctor.md): Create a new ray box.

## Properties

- [Area](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.box/area.md): Gets the area of this box.
- [Empty](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.box/empty.md): (static) Gets the empty box.
- [Infinite](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.box/infinite.md): (static) Gets the infinite box.
- [IsEmpty](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.box/isempty.md): Geta whether this box has zero area.
- [IsInfinite](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.box/isinfinite.md): Gets whether this box is fully infinite in all directions.
- [X0](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.box/x0.md): Minimum x.
- [X1](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.box/x1.md): Maximum x.
- [Y0](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.box/y0.md): Minimum y.
- [Y1](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.box/y1.md): Maximum y.

## Methods

- [Equals](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.box/equals.md): Indicates whether this instance and a specified object are equal.
- [GetHashCode](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.box/gethashcode.md): Returns the hash code for this instance.
- [Grow](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.box/grow.md): (2 overloads) Grow a box in all directions. None boxes remain empty.
- [Intersection](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.box/intersection.md): (static) Gets the intersection of a set of boxes. None boxes will be ignored.
- [IsCoincident](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.box/iscoincident.md): Gets the coincidence of a point. None boxes are never coincident.
- [ToString](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.box/tostring.md): Gets a string representation of this box.
- [Union](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.box/union.md): (static) Get the union of a set of boxes. None boxes will be ignored.

## Operators

- [operator ==](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.box/op-equality.md): (static) Compare two boxes for equality. None boxes are always equal to each other.
- [operator !=](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.box/op-inequality.md): (static) Compare two boxes for inequality. None boxes are always equal to each other.

## Convertors

- [operator implicit](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.box/op-implicit.md): (2 overloads, static) Converter to RectangleF.
