BoundingBox2D
Overview
BoundingBox2D is a class in Aspose.3D FOSS for TypeScript.
BoundingBox2D.constructor() creates an empty bounding box with no extents.
This class declares 12 methods for BoundingBox2D objects in TypeScript programs.
Available methods include: constructor, getCenter, getSize, infinite, merge, null, overlapsWith.
Public members are accessible to any TypeScript application after installing the Aspose.3D FOSS for TypeScript package.
Properties: extent, maximum, minimum.
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) | Calls constructor(minimum, maximum) on this BoundingBox2D instance. |
constructor(minX: number, minY: number, maxX: number, maxY: number) | Calls constructor(minX, minY, maxX, maxY) on this BoundingBox2D instance. |
constructor() | |
merge(pt: Vector2) | Merges the box with its current extents (no effect) |
merge(bb: BoundingBox2D) | Calls merge(bb) on this BoundingBox2D instance. |
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 |