SpatialRay SpatialRay SpatialRay SpatialRay SpatialRay Struct


A ray in the user's surroundings, with coordinates expressed in meters.

public : struct SpatialRay
struct winrt::Windows::Perception::Spatial::SpatialRay
public struct SpatialRay
Public Structure SpatialRay
var spatialRay = {

   direction: /* Your value */,

   origin: /* Your value */


Windows 10 requirements

Device family
Windows 10, version 1903 (introduced v10.0.18362.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v8)


Direction Direction Direction Direction Direction

The unit vector pointing in the direction of the ray.

Origin Origin Origin Origin Origin

The origin of the ray.