BoundingSphere interface

A bounding sphere object.

Constructors

The BoundingSphere interface has these constructors.

ConstructorDescription
DirectX.BoundingSphere

Creates an instance of the BoundingSphere class.

 

Methods

The BoundingSphere interface has these methods.

MethodDescription
ContainedBy

Tests whether the BoundingSphere is contained by the specified frustum.

Contains Overloaded.

Tests whether the BoundingSphere contains a specified object.

CreateFromBoundingBox

Creates a BoundingSphere containing the specified BoundingBox.

CreateFromPoints

Creates a new BoundingSphere from a list of points.

CreateMerged

Creates a BoundingSphere that contains the two specified BoundingSphere objects.

Intersects Overloaded.

Tests the BoundingSphere for intersection with an object.

op_Assignment

Initializes the BoundingSphere with values from a specified BoundingSphere.

Transform Overloaded.

Transforms the BoundingSphere.

 

Properties

The BoundingSphere interface has these properties.

PropertyAccess typeDescription

Center

Read/write

The center of the BoundingSphere.

Radius

Read/write

The radius of the BoundingSphere.

 

Note  BoundingSphere 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:
© 2015 Microsoft