Platform SDK: DirectX

D3DXVec2LengthSq

D3DXVec2LengthSq 関数は、指定された 2D ベクトルの長さの 2 乗を返す。

float D3DXVec2LengthSq(
  const D3DXVECTOR2* pV
); 

パラメータ

pV
ソースの D3DXVECTOR2 構造体へのポインタ。

戻り値

ベクトルの長さの 2 乗。

動作環境

  Windows NT/2000 : Windows 2000 が必要。
  Windows 95/98 : Windows 95 以上が必要。Windows 95 用に再配布可能な形で使用可能。
  バージョン : DirectX 7.0 が必要。
  ヘッダー : d3dxmath.h で宣言。
  ライブラリ : d3dx.lib を使用。

参照

D3DXVec2Length