BoundingBox

BoundingBox class

The axis-aligned bounding box

Properties

NameDescription
NULLThe null bounding box
INFINITEThe infinite bounding box

Methods

constructor

NameDescription
constructor()

Result:


constructor_overload

NameDescription
constructor_overload(minimum, maximum)Initialize a finite bounding box with given minimum and maximum corner

Parameters:

NameTypeDescription
minimumVector3The minimum corner
maximumVector3The maximum corner

Result:


constructor_overload$2{#constructor_overload$2}

NameDescription
constructor_overload$2(minX, minY, minZ, maxX, maxY, maxZ)Initialize a finite bounding box with given minimum and maximum corner

Result:


getExtent

NameDescription
getExtent()Gets the extent of the bounding box. The value of the property is BoundingBoxExtent integer constant.

Result:


getMinimum

NameDescription
getMinimum()The minimum corner of the bounding box

Result:


getMaximum

NameDescription
getMaximum()The maximum corner of the bounding box

Result:


getSize

NameDescription
getSize()The size of the bounding box

Result:


getCenter

NameDescription
getCenter()The center of the bounding box.

Result:


fromGeometry

NameDescription
fromGeometry(geometry)Construct a bounding box from given geometry

Parameters:

NameTypeDescription
geometrGeometrynull

Result: BoundingBox


toString

NameDescription
toString()Gets the string representation of the bounding box.

Result: String


hashCode

NameDescription
hashCode()Returns the hash code for this instance

Result: Number


equals

NameDescription
equals(obj)Determines if two objects are equal

Parameters:

NameTypeDescription
obObjectnull

Result: boolean