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

NameTypeAccessDescription
extentBoundingBoxExtentReadGets the extent.
minimumVector2ReadGets the minimum.
maximumVector2ReadGets the maximum.

Methods

SignatureDescription
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()Vector2Returns the center.
getSize()Vector2Returns the size.
overlapsWith(box: BoundingBox2D)booleanReturns true if this box intersects the given box
null()BoundingBox2DReturns a bounding box representing an empty region
infinite()BoundingBox2DReturns a bounding box that spans infinite extents

See Also

 English