XMVector2LengthEst 函式 (directxmath.h)

估計 2D 向量的長度。

語法

XMVECTOR XM_CALLCONV XMVector2LengthEst(
  [in] FXMVECTOR V
) noexcept;

參數

[in] V

2D 向量。

傳回值

傳回向量,每個元件都是 V 長度的估計值。

備註

Est 函式會以降低精確度來提供更高的效能。 Est 函式適用於可犧牲速度精確度的非關鍵計算。 確切的遺失精確度和速度增加量取決於平臺。

平臺需求

Microsoft Visual Studio 2010 或 Microsoft Visual Studio 2012 與 Windows SDK for Windows 8。 支援 Win32 傳統型應用程式、Windows 市集應用程式和 Windows Phone 8 個應用程式。

規格需求

需求
目標平台 Windows
標頭 directxmath.h (包含 DirectXMath.h)

另請參閱

DirectXMath 連結庫 2D 向量幾何函式

XMVector2Length

XMVector2LengthSq