BoundingBox2D

Oversigt over de forskellige former for støtte

BoundingBox2D er en klasse i Aspose.3d for Typescript. Arver fra: ̋BountingBox 2D゚.

BoundingBox2D.constructor (()) skaber et tomt 2‐D-grænseringsfelt.

Egenskaber

NameTypeAccessDescription
extentBoundingBoxExtentReadRepresents the type of extent used by the bounding box
minimumVector2ReadHolds the minimum corner coordinates of the box as a Vector2
maximumVector2Read

Metoder til at anvende

SignatureDescription
constructor()Creates a box from min and max vectors
constructor(minimum: Vector2, maximum: Vector2)
constructor(minX: number, minY: number, maxX: number, maxY: number)
constructor()
merge(pt: Vector2)Expands the box to include another bounding box
merge(bb: BoundingBox2D)
merge()
getCenter()Vector2Returns the center point of the box as a Vector2
getSize()Vector2Returns the width and height of the box as a Vector2
overlapsWith(box: BoundingBox2D)booleanReturns true if the two boxes intersect
null()BoundingBox2DReturns a bounding box with no area (empty)
infinite()BoundingBox2DReturns a bounding box that spans infinite extents
 Dansk