BoundingOrientedBox::CreateFromPoints 函式 (directxcollision.h)

從點集合建立 BoundingOrientedBox

語法

void CreateFromPoints(
  [out, ref] BoundingOrientedBox & Out,
  [in]       size_t                Count,
             const XMFLOAT3        *pPoints,
  [in]       size_t                Stride
) noexcept;

參數

[out, ref] Out

包含指定點的新 BoundingOrientedBox

[in] Count

pPoints中緩衝區中的點數。

pPoints

緩衝區,包含要從中建立 BoundingOrientedBox 的點。

[in] Stride

緩衝區的步幅。

傳回值

備註

平臺需求

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

需求

   
目標平台 Windows
標頭 directxcollision.h

另請參閱

BoundingOrientedBox

方法

參考