Reference·JavaScript · @bimworks/viewer3dJavaScript

AxisAlignedBoundingBox3D

Class in @bimworks/viewer3d.

API catalogue · @bimworks/viewer3d · Class

TypeScript#
class AxisAlignedBoundingBox3D

An axis-aligned box in mm; the frame is the one of the member that returns it (render space for the viewer's bounds)

Members#

Member Kind Description
constructor Method
getCenter Method
getMaxX Method
getMaxY Method
getMaxZ Method
getMinX Method
getMinY Method
getMinZ Method
getSize Method The size along an axis: 0 x, 1 y, 2 z
isEmpty Method

constructor#

TypeScript#
constructor()

getCenter#

TypeScript#
getCenter(): vec3

getMaxX#

TypeScript#
getMaxX(): number

getMaxY#

TypeScript#
getMaxY(): number

getMaxZ#

TypeScript#
getMaxZ(): number

getMinX#

TypeScript#
getMinX(): number

getMinY#

TypeScript#
getMinY(): number

getMinZ#

TypeScript#
getMinZ(): number

getSize#

TypeScript#
getSize(ordinate: 0 | 1 | 2): number

The size along an axis: 0 x, 1 y, 2 z

Parameters#

Name Type Description
ordinate 0 | 1 | 2

isEmpty#

TypeScript#
isEmpty(): boolean