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

# BoundingBox2D

## Overview

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

BoundingBox2D.constructor() creates an empty bounding box with no extents.

This class provides 7 methods for working with BoundingBox2D objects in Typescript programs.
Available methods include: `constructor`, `getCenter`, `getSize`, `infinite`, `merge`, `null`, `overlapsWith`.
All public members are accessible to any Typescript application after installing the Aspose.3D FOSS for Typescript package.
Properties: `extent`, `maximum`, `minimum`.

## Description

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

Core capabilities include: `boundingboxextent`; `vector2`; `vector2`. These operations enable developers to integrate boundingbox2d functionality directly into TypeScript applications.

The class also provides the `extent` property (gets the extent), the `minimum` property (gets the minimum), the `maximum` property (gets the maximum).

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

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `extent` | `BoundingBoxExtent` | Read | Gets the extent. |
| `minimum` | `Vector2` | Read | Gets the minimum. |
| `maximum` | `Vector2` | Read | Gets the maximum. |

## Methods

| Signature | Description |
|-----------|-------------|
| `constructor()` | Creates a box from the given min and max vectors |
| `constructor(minimum: Vector2, maximum: Vector2)` |  |
| `constructor(minX: number, minY: number, maxX: number, maxY: number)` |  |
| `constructor()` |  |
| `merge(pt: Vector2)` | Merges the box with its current extents (no effect) |
| `merge(bb: BoundingBox2D)` |  |
| `merge()` |  |
| `getCenter()` → `Vector2` | Returns the center. |
| `getSize()` → `Vector2` | Returns the size. |
| `overlapsWith(box: BoundingBox2D)` → `boolean` | Returns true if this box intersects the given box |
| `null()` → `BoundingBox2D` | Returns a bounding box representing an empty region |
| `infinite()` → `BoundingBox2D` | Returns a bounding box that spans infinite extents |

## See Also

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