Dela via


SpatialRay Struct

Definition

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

/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 524288)]
struct SpatialRay
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 524288)]
public struct SpatialRay
var spatialRay = {
origin : /* Your value */,
direction : /* Your value */
}
Public Structure SpatialRay
Inheritance
SpatialRay
Attributes

Windows requirements

Device family
Windows 10, version 1903 (introduced in 10.0.18362.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v8.0)

Fields

Direction

The unit vector pointing in the direction of the ray.

Origin

The origin of the ray.

Applies to