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.Static(Windows.Perception.Spatial.ISpatialBoundingVolumeStatics, 131072, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class SpatialBoundingVolume sealed
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 131072)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Static(typeof(Windows.Perception.Spatial.ISpatialBoundingVolumeStatics), 131072, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class SpatialBoundingVolume
Public NotInheritable Class SpatialBoundingVolume
Inheritance
SpatialBoundingVolume
Attributes

Windows 10 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