BoundingSphere::Transform (BoundingSphere&,float,FXMVECTOR,FXMVECTOR) 函数 (directxcollision.h)

使用指定的缩放、旋转和平移向量转换 BoundingSphere。

语法

void XM_CALLCONV Transform(
  [out, ref] BoundingSphere & Out,
  [in]       float            Scale,
  [in]       FXMVECTOR        Rotation,
  [in]       FXMVECTOR        Translation
) noexcept;

参数

[out, ref] Out

转换后的 BoundingSphere。

[in] Scale

要按比例缩放 BoundingSphere 的值。

[in] Rotation

要旋转 BoundingSphere 的值。

[in] Translation

用于转换 BoundingSphere 的值。

返回值

此方法不返回值。

备注

平台要求

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

要求

要求
目标平台 Windows
标头 directxcollision.h

另请参阅

BoundingSphere

引用

转换