BoundingSphere::BoundingSphere (constXMFLOAT3&,float) 函式 (directxcollision.h)

建立 BoundingSphere 類別的實例。

語法

void BoundingSphere(
  [in, ref] const XMFLOAT3 & center,
  [in]      float            radius
) noexcept;

參數

[in, ref] center

BoundingSphere 的中心。

[in] radius

BoundingSphere 的半徑。

傳回值

備註

平臺需求

Microsoft Visual Studio 2010 或 Microsoft Visual Studio 2012 與 Windows SDK for Windows 8。 支援 Win32 傳統型應用程式、Windows 市集應用程式和 Windows Phone 8 個應用程式。

規格需求

   
目標平台 Windows
標頭 directxcollision.h

另請參閱

BoundingSphere

建構函式

參考