Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
SpatialRay Struct
Definition
- Namespace:
- Windows.Perception.Spatial
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
| Requirements | Description |
|---|---|
| Device family |
Windows 10, version 1903 (introduced in 10.0.18362.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced in v8.0)
|
Fields
| Name | Description |
|---|---|
| Direction |
The unit vector pointing in the direction of the ray. |
| Origin |
The origin of the ray. |
Applies to
Feedback
Was this page helpful?
