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.
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 |