共用方式為


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

參考

轉換