XMVectorScale 函数 (directxmath.h)

标量将向量乘以浮点值。

语法

XMVECTOR XM_CALLCONV XMVectorScale(
  [in] FXMVECTOR V,
  [in] float     ScaleFactor
) noexcept;

参数

[in] V

要缩放的向量。

[in] ScaleFactor

标量值。

返回值

返回缩放向量。

注解

平台要求

Microsoft Visual Studio 2010 或 Microsoft Visual Studio 2012 与 Windows SDK for Windows 8。 支持 Win32 桌面应用、Windows 应用商店应用和 Windows Phone 8 应用。

要求

要求
目标平台 Windows
标头 directxmath.h (包括 DirectXMath.h)

另请参阅

向量算术函数