BoundingBox2D
Overview
BoundingBox2D is a class in Aspose.3D FOSS for Typescript.
BoundingBox2D.constructor() creates an empty bounding box with no extents.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
extent | BoundingBoxExtent | Read | Represents the type of extent used by the bounding box |
minimum | Vector2 | Read | Holds the minimum corner vector of the box |
maximum | Vector2 | Read |
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 point of the box as a Vector2 |
getSize() → Vector2 | Returns the width and height of the box as a Vector2 |
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 |