BoundingBox::CreateFromSphere 函数 (directxcollision.h)

创建一个足以包含指定 BoundingSphere 的 BoundingBox。

语法

void CreateFromSphere(
  [out, ref] BoundingBox &          Out,
  [in, ref]  const BoundingSphere & sh
) noexcept;

参数

[out, ref] Out

新的 BoundingBox。

[in, ref] sh

新 BoundingBox 应包含的 BoundingSphere。

返回值

备注

平台要求

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

要求

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

另请参阅

BoundingBox

方法

引用