BoundingBox interface

A bounding axis-aligned object.

Constructors

The BoundingBox interface has these constructors.

ConstructorDescription
BoundingBox

Creates an instance of the BoundingBox class.

 

Methods

The BoundingBox interface has these methods.

MethodDescription
ContainedBy

Tests whether the BoundingBox is contained by the specified frustum.

Contains Overloaded.

Tests whether the BoundingBox contains a specified object.

CreateFromPoints Overloaded.

Creates a BoundingBox from points.

CreateFromSphere

Creates a BoundingBox large enough to contain the a specified BoundingSphere.

CreateMerged

Creates a BoundingBox large enough to contains two specified BoundBox intances.

GetCorners

Retrieves the corners of the BoundingBox.

Intersects Overloaded.

Tests the BoundingBox for intersection with another object.

op_Assignment

Copies values from another BoundingBox.

Transform Overloaded.

Transforms the BoundingBox.

 

Properties

The BoundingBox interface has these properties.

PropertyAccess typeDescription

Center

Read/write

The center of the BoundingBox.

CORNER_COUNT

Read/write

The number of points defining the BoundingBox.

Extents

Read/write

The extents of the BoundingBox.

 

Note  BoundingBox is new for DirectXMath. This functionality is not available in XNAMath 2.x. Similar functionality for XNAMath can be found in the DirectX SDK Collision sample.

Remarks

Platform Requirements

Microsoft Visual Studio 2010 or Microsoft Visual Studio 2012 with the Windows SDK for Windows 8. Supported for Win32 desktop apps, Windows Store apps, and Windows Phone 8 apps.

Requirements

Namespace

Use DirectX.

Header

DirectXCollision.h

 

 

Community Additions

ADD
Show:
© 2014 Microsoft