HeadOrientation 類別

定義

表示物件,描述使用者頭部相對於人類目前狀態感測器的方向,以 滾動傾斜偏角

public ref class HeadOrientation sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 1245184)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class HeadOrientation final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 1245184)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class HeadOrientation
Public NotInheritable Class HeadOrientation
繼承
Object Platform::Object IInspectable HeadOrientation
屬性

Windows 需求

裝置系列
Windows 11 Insider Preview (已於 10.0.26100.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v19.0 引進)

備註

X 軸位於裝置畫面的平面。 它正向屏幕右側,從面向裝置的用戶觀點來看。 (針對沒有螢幕的裝置,軸會相對於 device.) 的前端面板定義

Y 軸位於螢幕的平面。 正向畫面頂端。

Z 軸與螢幕垂直。 對面向裝置的使用者是正面的。

軸是相對於裝置的固定軸,不會隨著裝置旋轉而變更。

下圖顯示人類存在 API 如何描述變換、傾斜和偏轉。

描述人類存在 API 如何描述滾動、傾斜和偏向的圖表。

屬性

PitchInDegrees

以度為單位,取得用戶頭部繞 X 軸 (或橫向座標軸) 的反時針旋轉。

RollInDegrees

以度為單位,取得使用者頭部繞 Z 軸 (或長軸) 的反時針旋轉。

YawInDegrees

以度為單位,取得用戶頭部繞 Y 軸 (或垂直軸) 的反時針旋轉。

適用於

另請參閱