BoundingBox::Intersects 函式 (directxcollision.h)

測試 BoundingBox 以與 BoundingSphere 交集。

語法

bool Intersects(
  const BoundingSphere & sh
) noexcept;

參數

sh

要測試交集 的 BoundingSphere

傳回值

bool 值,指出 BoundingBox 是否與指定的 BoundingSphere 交集。

備註

平台需求

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

規格需求

需求
最低支援的用戶端 Windows 10 組建 20348
最低支援的伺服器 Windows 10 組建 20348
標頭 directxcollision.h

另請參閱

BoundingBox