---
Product: Aspose.3D
Platform: typescript
Page Type: reference
Canonical URL: https://reference.aspose.org/3d/typescript/BoundingBox
---

# BoundingBox

## Overview

`BoundingBox` is a class in Aspose.3D FOSS for Typescript.

This class provides 8 methods for working with BoundingBox objects in Typescript programs.
Available methods include: `constructor`, `contains`, `infinite`, `merge`, `null`, `overlapsWith`, `scale`, `toString`.
All public members are accessible to any Typescript application after installing the Aspose.3D FOSS for Typescript package.
Properties: `center`, `extent`, `maximum`, `minimum`, `size`, `x`, and 2 more.

## Description

`BoundingBox` is a class in the Aspose.3D FOSS library for TypeScript that exposes 7 methods and 29 properties for programmatic use.

Core capabilities include: `: number`; `: number`; `: number`. These operations enable developers to integrate boundingbox functionality directly into TypeScript applications.

The class also provides the `x` property (gets the x), the `y` property (gets the y), the `z` property (gets the z).

The class offers 4 constructor overloads, allowing flexible initialization depending on the calling context.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `x` | `: number` | Read | Gets the x. |
| `y` | `: number` | Read | Gets the y. |
| `z` | `: number` | Read | Gets the z. |
| `x` | `: number` | Read | Gets the x. |
| `y` | `: number` | Read | Gets the y. |
| `z` | `: number` | Read | Gets the z. |
| `x` | `: number` | Read | Gets the x. |
| `y` | `: number` | Read | Gets the y. |
| `z` | `: number` | Read | Gets the z. |
| `x` | `: number` | Read | Gets the x. |
| `y` | `: number` | Read | Gets the y. |
| `z` | `: number` | Read | Gets the z. |
| `minimum` | `{ x: number; y: number; z: number }` | Read | Gets the minimum. |
| `x` | `: number` | Read | Gets the x. |
| `y` | `: number` | Read | Gets the y. |
| `z` | `: number` | Read | Gets the z. |
| `maximum` | `{ x: number; y: number; z: number }` | Read | Gets the maximum. |
| `x` | `: number` | Read | Gets the x. |
| `y` | `: number` | Read | Gets the y. |
| `z` | `: number` | Read | Gets the z. |
| `center` | `{ x: number; y: number; z: number }` | Read | Gets the center. |
| `x` | `: number` | Read | Gets the x. |
| `y` | `: number` | Read | Gets the y. |
| `z` | `: number` | Read | Gets the z. |
| `size` | `{ x: number; y: number; z: number }` | Read | Gets the size. |
| `x` | `: number` | Read | Gets the x. |
| `y` | `: number` | Read | Gets the y. |
| `z` | `: number` | Read | Gets the z. |
| `extent` | `BoundingBoxExtent` | Read | Gets the extent. |

## Methods

| Signature | Description |
|-----------|-------------|
| `constructor()` | Creates an empty (null) bounding box |
| `constructor(minimum: { x: number; y: number; z: number }, maximum: { x: number; y: number; z: number })` | Creates a bounding box with the specified minimum and maximum corner points |
| `constructor(minX: number, minY: number, minZ: number, maxX: number, maxY: number, maxZ: number)` | Creates a bounding box from explicit minimum and maximum coordinate components |
| `constructor()` | Creates a default bounding box |
| `null()` → `BoundingBox` | Returns a null (empty) bounding box |
| `infinite()` → `BoundingBox` | Returns an infinite bounding box that contains all points |
| `merge()` | Merges another bounding box or point into this bounding box |
| `contains(arg: any)` → `boolean` | Returns true if this bounding box contains the given point or box |
| `overlapsWith(box: BoundingBox)` → `boolean` | Returns true if this bounding box overlaps with the given bounding box |
| `scale()` → `number` | Returns the scale factor of this bounding box |
| `toString()` → `string` | Returns a string representation of this bounding box |

## See Also

- [Aspose.3D — Enterprise API Reference](https://reference.aspose.com/3d/)