XMVector2ClampLength 関数 (directxmath.h)

2D ベクトルの長さを特定の範囲にクランプします。

構文

XMVECTOR XM_CALLCONV XMVector2ClampLength(
  [in] FXMVECTOR V,
  [in] float     LengthMin,
  [in] float     LengthMax
) noexcept;

パラメーター

[in] V

2D ベクター。

[in] LengthMin

最小クランプ長さ。

[in] LengthMax

最大クランプ長。

戻り値

指定した最小値と最大値に固定された長さの 2D ベクターを返します。

解説

プラットフォームの要件

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

要件

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

関連項目

DirectXMath ライブラリ 2D ベクター幾何学的関数

XMVector2ClampLengthV