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

NameTypeAccessDescription
x: numberReadGets the x.
y: numberReadGets the y.
z: numberReadGets the z.
x: numberReadGets the x.
y: numberReadGets the y.
z: numberReadGets the z.
x: numberReadGets the x.
y: numberReadGets the y.
z: numberReadGets the z.
x: numberReadGets the x.
y: numberReadGets the y.
z: numberReadGets the z.
minimum{ x: number; y: number; z: number }ReadGets the minimum.
x: numberReadGets the x.
y: numberReadGets the y.
z: numberReadGets the z.
maximum{ x: number; y: number; z: number }ReadGets the maximum.
x: numberReadGets the x.
y: numberReadGets the y.
z: numberReadGets the z.
center{ x: number; y: number; z: number }ReadGets the center.
x: numberReadGets the x.
y: numberReadGets the y.
z: numberReadGets the z.
size{ x: number; y: number; z: number }ReadGets the size.
x: numberReadGets the x.
y: numberReadGets the y.
z: numberReadGets the z.
extentBoundingBoxExtentReadGets the extent.

Methods

SignatureDescription
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()BoundingBoxReturns a null (empty) bounding box
infinite()BoundingBoxReturns an infinite bounding box that contains all points
merge()Merges another bounding box or point into this bounding box
contains(arg: any)booleanReturns true if this bounding box contains the given point or box
overlapsWith(box: BoundingBox)booleanReturns true if this bounding box overlaps with the given bounding box
scale()numberReturns the scale factor of this bounding box
toString()stringReturns a string representation of this bounding box

See Also