windowsnumerics.h API

windowsnumerics.h 標頭檔定義 Windows.Foundation.Numerics 命名空間中的 C++ 向量和矩陣類型。 它會使用一系列數學運算子和函式,從 Windows.Foundation.Numerics 擴充結構。

此命名空間僅適用于 C++。 它的 .NET 對等專案是 System.Numerics

本節內容

主題 描述
float2 結構 具有兩個元件的向量。
float3 結構 具有三個元件的向量。
float3x2 結構 用於 2D 轉換的 3x2 矩陣。
float4 結構 具有四個元件的向量。
float4x4 結構 4x4 矩陣,用於 3D 轉換。
平面結構 這個 結構代表平面,使用 3D 向量標準與距離值。
四元數結構 四維向量,用來表示旋轉。
Windows 數值和 DirectXMath Interop API 這些函式會將 Windows.Foundation.Numerics 類型轉換成 DirectXMath SIMD 類型 XMVECTORXMMATRIX