XMVector2LengthSq 関数 (directxmath.h)

2D ベクトルの長さの 2 乗を計算します。

構文

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

パラメーター

[in] V

2D ベクター。

戻り値

ベクターを返します。 V の長さの 2 乗は、各コンポーネントにレプリケートされます。

解説

プラットフォームの要件

Windows 8 用 Windows SDK を使用した Microsoft Visual Studio 2010 または Microsoft Visual Studio 2012。 Win32 デスクトップ アプリ、Windows ストア アプリ、Windows Phone 8 アプリでサポートされます。

要件

   
対象プラットフォーム Windows
ヘッダー directxmath.h (DirectXMath.h を含む)

関連項目

DirectXMath ライブラリ 2D ベクタージオメトリック関数

XMVector2Length

XMVector2LengthEst