OrientationSensorReading OrientationSensorReading OrientationSensorReading OrientationSensorReading Class

Represents an orientation-sensor reading.

Syntax

Declaration

public sealed class OrientationSensorReadingpublic sealed class OrientationSensorReadingPublic NotInheritable Class OrientationSensorReading

Remarks

This object is accessed when you invoke the GetCurrentReading() method; and, it is accessed when you retrieve the Reading property of the OrientationSensorReadingChangedEventArgs object in the event callback method..

Properties summary

Gets the Quaternion for the current orientation-sensor reading.

Gets the rotation matrix for the current orientation-sensor reading.

Gets the time at which the sensor reported the reading.

Gets the orientation sensor's z-axis accuracy.

Properties

  • Quaternion
    Quaternion
    Quaternion
    Quaternion

    Gets the Quaternion for the current orientation-sensor reading.

    public SensorQuaternion Quaternion { get; }public SensorQuaternion Quaternion { get; }Public ReadOnly Property Quaternion As SensorQuaternion

    Property Value

  • RotationMatrix
    RotationMatrix
    RotationMatrix
    RotationMatrix

    Gets the rotation matrix for the current orientation-sensor reading.

    public SensorRotationMatrix RotationMatrix { get; }public SensorRotationMatrix RotationMatrix { get; }Public ReadOnly Property RotationMatrix As SensorRotationMatrix

    Property Value

  • Timestamp
    Timestamp
    Timestamp
    Timestamp

    Gets the time at which the sensor reported the reading.

    public DateTime Timestamp { get; }public DateTime Timestamp { get; }Public ReadOnly Property Timestamp As DateTime

    Property Value

  • YawAccuracy
    YawAccuracy
    YawAccuracy
    YawAccuracy

    Gets the orientation sensor's z-axis accuracy.

    public MagnetometerAccuracy YawAccuracy { get; }public MagnetometerAccuracy YawAccuracy { get; }Public ReadOnly Property YawAccuracy As MagnetometerAccuracy

    Property Value

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.DualApiPartitionAttribute
Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.ThreadingAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute

Details

Assembly

Windows.Devices.Sensors.dll