# BoundingBox

class `cee.``BoundingBox`()

  An axis-oriented bounding box storing the extent of an object.

  All vertices of the object that the bounding box has been computed for will be within the box defined by the min and max corners.

  Note that this class is immutable.

Constructors

- `constructor`

Properties

- `maximum`
- `minimum`

Methods

- `getCenter`
- `getExtent`
- `isValid`
- `createInvalid`

## Constructors

`BoundingBox.``constructor`(minimum, maximum)

  Arguments: | minimum (`Vec3Like`) – None maximum (`Vec3Like`) – None

  Creates a bounding box with the given min and max corners.

  Return type: | BoundingBox

## Properties

`BoundingBox.``maximum`

  Type: | Vec3

  The maximum values for x, y and z across all vertices in the object.

`BoundingBox.``minimum`

  Type: | Vec3

  The minimum values for x, y and z across all vertices in the object.

## Methods

### getCenter

`BoundingBox.``getCenter`()

  Returns the center of the bounding box

  Return type: | Vec3

### getExtent

`BoundingBox.``getExtent`()

  Returns the extent for each component (x,y,z) of the bounding box (maximum - minimum).

  Return type: | Vec3

### isValid

`BoundingBox.``isValid`()

  Returns true if the bounding box is valid, i.e. if minimum < maximum for x, y and z.

  Return type: | boolean

### static createInvalid

`BoundingBox.``createInvalid`()

  Creates an invalid bounding box where maximum < minimum for x, y and z

  Return type: | BoundingBox

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your Docs generative AI assistant. Ask me anything about HOOPS Envision for Web or choose a sample question below to start a conversation:

What is HOOPS Envision for Web?
What are the latest release notes for HOOPS Envision for Web?
How do I start evaluating HOOPS Envision for Web?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...