Delen via


SpatialBoundingVolume Class

Definition

Represents a bounding volume of some kind in the user's surroundings, for example, a box, oriented box, sphere or frustum.

public ref class SpatialBoundingVolume sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 131072)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class SpatialBoundingVolume final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 131072)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class SpatialBoundingVolume
Public NotInheritable Class SpatialBoundingVolume
Inheritance
Object Platform::Object IInspectable SpatialBoundingVolume
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10586.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced in v2.0)

Remarks

Once created, a SpatialBoundingVolume is opaque, and only intended to be passed to an API that expects one as input.

Methods

FromBox(SpatialCoordinateSystem, SpatialBoundingBox)

Creates a bounding volume from the specified box, with its coordinates interpreted within the specified coordinate system.

FromFrustum(SpatialCoordinateSystem, SpatialBoundingFrustum)

Creates a bounding volume from the specified frustum, with its coordinates interpreted within the specified coordinate system.

FromOrientedBox(SpatialCoordinateSystem, SpatialBoundingOrientedBox)

Creates a bounding volume from the specified oriented box, with its coordinates interpreted within the specified coordinate system.

FromSphere(SpatialCoordinateSystem, SpatialBoundingSphere)

Creates a bounding volume from the specified sphere, with its coordinates interpreted within the specified coordinate system.

Applies to