BoundingBox
public readonly record struct BoundingBoxAn axis-aligned box. Used for camera framing and to reject picks cheaply.
Constructors
| Member | Description |
|---|---|
| An axis-aligned box. Used for camera framing and to reject picks cheaply.
|
Properties
| Member | Description |
|---|---|
| The midpoint, or the origin when the box is empty. |
| A box that contains nothing, and absorbs any point or box unioned into it. |
| Whether the box contains nothing. An empty box has a min greater than its max. |
| The corner with the largest coordinate on every axis. |
| The corner with the smallest coordinate on every axis. |
| Radius of the sphere that contains the box. Never zero, so it is safe to divide by. |
| Extent along each axis, or zero when the box is empty. |
Methods
| Member | Description |
|---|---|
| Distance along the ray at which it enters the box, or null if it misses. |
| The box that contains this one after |
| The smallest box containing both. Unioning with an empty box returns the other unchanged. |
| The smallest box containing this one and |