SpatialLocation
SpatialLocation
SpatialLocation
SpatialLocation
Class
Definition
Represents the location of the device in the user's surroundings at a point in time.
public : sealed class SpatialLocation : ISpatialLocationpublic sealed class SpatialLocation : ISpatialLocationPublic NotInheritable Class SpatialLocation Implements ISpatialLocation// You can use this class in JavaScript.
- Attributes
| 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)
|
Properties
AbsoluteAngularAcceleration AbsoluteAngularAcceleration AbsoluteAngularAcceleration AbsoluteAngularAcceleration
Gets the absolute angular acceleration of the device. This acceleration is expressed in the supplied coordinate system, although the motion is measured relative to the user's surroundings.
public : Quaternion AbsoluteAngularAcceleration { get; }public Quaternion AbsoluteAngularAcceleration { get; }Public ReadOnly Property AbsoluteAngularAcceleration As Quaternion// You can use this property in JavaScript.
- Value
- Quaternion Quaternion Quaternion Quaternion
The angular acceleration.
Remarks
The acceleration is clamped to be less than 180 degrees in any direction.
AbsoluteAngularVelocity AbsoluteAngularVelocity AbsoluteAngularVelocity AbsoluteAngularVelocity
Gets the absolute angular velocity of the device. This velocity is expressed in the supplied coordinate system, although the motion is measured relative to the user's surroundings.
public : Quaternion AbsoluteAngularVelocity { get; }public Quaternion AbsoluteAngularVelocity { get; }Public ReadOnly Property AbsoluteAngularVelocity As Quaternion// You can use this property in JavaScript.
- Value
- Quaternion Quaternion Quaternion Quaternion
The angular velocity.
AbsoluteLinearAcceleration AbsoluteLinearAcceleration AbsoluteLinearAcceleration AbsoluteLinearAcceleration
Gets the absolute acceleration vector of the device. This acceleration is expressed in the supplied coordinate system, although the motion is measured relative to the user's surroundings.
public : Vector3 AbsoluteLinearAcceleration { get; }public Vector3 AbsoluteLinearAcceleration { get; }Public ReadOnly Property AbsoluteLinearAcceleration As Vector3// You can use this property in JavaScript.
- Value
- Vector3 Vector3 Vector3 Vector3
The acceleration.
AbsoluteLinearVelocity AbsoluteLinearVelocity AbsoluteLinearVelocity AbsoluteLinearVelocity
Gets the absolute velocity vector of the device. This velocity is expressed in the supplied coordinate system, although the motion is measured relative to the user's surroundings.
public : Vector3 AbsoluteLinearVelocity { get; }public Vector3 AbsoluteLinearVelocity { get; }Public ReadOnly Property AbsoluteLinearVelocity As Vector3// You can use this property in JavaScript.
- Value
- Vector3 Vector3 Vector3 Vector3
The velocity.
Orientation Orientation Orientation Orientation
Gets the orientation of the device within the supplied coordinate system.
public : Quaternion Orientation { get; }public Quaternion Orientation { get; }Public ReadOnly Property Orientation As Quaternion// You can use this property in JavaScript.
- Value
- Quaternion Quaternion Quaternion Quaternion
The orientation.
Position Position Position Position
Gets the position of the device within the supplied coordinate system.
public : Vector3 Position { get; }public Vector3 Position { get; }Public ReadOnly Property Position As Vector3// You can use this property in JavaScript.
- Value
- Vector3 Vector3 Vector3 Vector3
The position.