SpatialBoundingVolume SpatialBoundingVolume SpatialBoundingVolume 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 : sealed class SpatialBoundingVolume : ISpatialBoundingVolume
public sealed class SpatialBoundingVolume : ISpatialBoundingVolume
Public NotInheritable Class SpatialBoundingVolume Implements ISpatialBoundingVolume
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10586.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v2)

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) FromBox(SpatialCoordinateSystem, SpatialBoundingBox) FromBox(SpatialCoordinateSystem, SpatialBoundingBox) FromBox(SpatialCoordinateSystem, SpatialBoundingBox)

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

public : static SpatialBoundingVolume FromBox(SpatialCoordinateSystem coordinateSystem, SpatialBoundingBox box)
public static SpatialBoundingVolume FromBox(SpatialCoordinateSystem coordinateSystem, SpatialBoundingBox box)
Public Static Function FromBox(coordinateSystem As SpatialCoordinateSystem, box As SpatialBoundingBox) As SpatialBoundingVolume
var spatialBoundingVolume = Windows.Perception.Spatial.SpatialBoundingVolume.fromBox(coordinateSystem, box);
Parameters
coordinateSystem
SpatialCoordinateSystem SpatialCoordinateSystem SpatialCoordinateSystem SpatialCoordinateSystem

The coordinate system within which to interpret the bounding box's coordinates.

Returns

FromFrustum(SpatialCoordinateSystem, SpatialBoundingFrustum) FromFrustum(SpatialCoordinateSystem, SpatialBoundingFrustum) FromFrustum(SpatialCoordinateSystem, SpatialBoundingFrustum) FromFrustum(SpatialCoordinateSystem, SpatialBoundingFrustum)

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

public : static SpatialBoundingVolume FromFrustum(SpatialCoordinateSystem coordinateSystem, SpatialBoundingFrustum frustum)
public static SpatialBoundingVolume FromFrustum(SpatialCoordinateSystem coordinateSystem, SpatialBoundingFrustum frustum)
Public Static Function FromFrustum(coordinateSystem As SpatialCoordinateSystem, frustum As SpatialBoundingFrustum) As SpatialBoundingVolume
var spatialBoundingVolume = Windows.Perception.Spatial.SpatialBoundingVolume.fromFrustum(coordinateSystem, frustum);
Parameters
coordinateSystem
SpatialCoordinateSystem SpatialCoordinateSystem SpatialCoordinateSystem SpatialCoordinateSystem

The coordinate system within which to interpret the bounding frustum's coordinates.

Returns

FromOrientedBox(SpatialCoordinateSystem, SpatialBoundingOrientedBox) FromOrientedBox(SpatialCoordinateSystem, SpatialBoundingOrientedBox) FromOrientedBox(SpatialCoordinateSystem, SpatialBoundingOrientedBox) FromOrientedBox(SpatialCoordinateSystem, SpatialBoundingOrientedBox)

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

public : static SpatialBoundingVolume FromOrientedBox(SpatialCoordinateSystem coordinateSystem, SpatialBoundingOrientedBox box)
public static SpatialBoundingVolume FromOrientedBox(SpatialCoordinateSystem coordinateSystem, SpatialBoundingOrientedBox box)
Public Static Function FromOrientedBox(coordinateSystem As SpatialCoordinateSystem, box As SpatialBoundingOrientedBox) As SpatialBoundingVolume
var spatialBoundingVolume = Windows.Perception.Spatial.SpatialBoundingVolume.fromOrientedBox(coordinateSystem, box);
Parameters
coordinateSystem
SpatialCoordinateSystem SpatialCoordinateSystem SpatialCoordinateSystem SpatialCoordinateSystem

The coordinate system within which to interpret the bounding box's coordinates.

Returns

FromSphere(SpatialCoordinateSystem, SpatialBoundingSphere) FromSphere(SpatialCoordinateSystem, SpatialBoundingSphere) FromSphere(SpatialCoordinateSystem, SpatialBoundingSphere) FromSphere(SpatialCoordinateSystem, SpatialBoundingSphere)

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

public : static SpatialBoundingVolume FromSphere(SpatialCoordinateSystem coordinateSystem, SpatialBoundingSphere sphere)
public static SpatialBoundingVolume FromSphere(SpatialCoordinateSystem coordinateSystem, SpatialBoundingSphere sphere)
Public Static Function FromSphere(coordinateSystem As SpatialCoordinateSystem, sphere As SpatialBoundingSphere) As SpatialBoundingVolume
var spatialBoundingVolume = Windows.Perception.Spatial.SpatialBoundingVolume.fromSphere(coordinateSystem, sphere);
Parameters
coordinateSystem
SpatialCoordinateSystem SpatialCoordinateSystem SpatialCoordinateSystem SpatialCoordinateSystem

The coordinate system within which to interpret the bounding sphere's coordinates.

Returns