Share via


OrientationSensorReading クラス

定義

向きセンサーの読み取り値を表します。

public ref class OrientationSensorReading sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class OrientationSensorReading final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class OrientationSensorReading
Public NotInheritable Class OrientationSensorReading
継承
Object Platform::Object IInspectable OrientationSensorReading
属性

Windows の要件

デバイス ファミリ
Windows 10 (10.0.10240.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v1.0 で導入)

注釈

このオブジェクトは、GetCurrentReading メソッドを呼び出すとアクセスされます。イベント コールバック メソッドで OrientationSensorReadingChangedEventArgs オブジェクトの Reading プロパティを取得するとアクセスされます。

バージョン履歴

Windows のバージョン SDK バージョン 追加された値
1709 16299 PerformanceCount
1709 16299 Properties

プロパティ

PerformanceCount

読み取りに関連付けられているパフォーマンス数を取得します。 これにより、読み取りをシステム上の他のデバイスやプロセスと同期できます。

Properties

センサーによって報告されるデータ プロパティを取得します。

Quaternion

現在の向きセンサーの読み取りの四元数を取得します。

RotationMatrix

現在の向きセンサーの読み取りの回転行列を取得します。

Timestamp

センサーが読み取りを報告した時刻を取得します。

YawAccuracy

方向センサーの z 軸の精度を取得します。

適用対象

こちらもご覧ください