> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# FFTPolar

> FFTPolar

# FFTPolar

將複數分量轉換為其極座標形式。

## 語法

```cpp theme={null}
void DSP::FFTPolar(  
         XMVECTOR* __restrict pOutput,  
         const XMVECTOR* __restrict pInputReal,  
         const XMVECTOR* __restrict pInputImaginary,  
         const size_t uLength  
)  
```

### 參數

*pOutput*   \_Out\_writes\_(uLength / 4)\
類型：XMVECTOR\* \_\_restrict

呼叫端提供的輸出緩衝區，以極座標形式接收樣本。*pOutput* 必須至少有 *uLength* ÷ 4 個元素。

*pInputReal*   \_In\_reads\_(uLength / 4)\
類型：XMVECTOR\* \_\_restrict

其中每個元素都是複數的實數分量。*pInputReal* 必須至少有 *uLength* ÷ 4 個元素。

*pInputImaginary*   \_In\_reads\_(uLength / 4)\
類型：XMVECTOR\* \_\_restrict

其中每個元素都是複數的虛數分量。*pInputImaginary* 必須至少有 *uLength* ÷ 4 個元素。

*uLength*   \_In\_\
類型：size\_t

所有向量的長度 (以元素為單位)。*uLength* 必須是大於或等於 4 的 2 的乘冪。

### 傳回值

類型：void

無。

## 備註

所有緩衝區參數都必須為 16 位元組對齊。音訊資料必須是 FLOAT32。*pOutput*、*pInputReal* 和 *pInputImaginary* 參數的值不得重疊。

## 需求

**標頭：** xdsp.h

**支援的平台：** XBOX One 系列主機和 XBOX Series 主機

## 另請參閱

[xdsp](/zh-TW/reference/audio/xdsp/xdsp_members)

[Game for Windows and the DirectX SDK 部落格](https://walbourn.github.io/xdsp-h-digital-signal-processing-helper-functions/)

[快速且精確的極座標傅立葉轉換](https://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.409.2516\&rep=rep1\&type=pdf)


## Related topics

- [FFTPolar](/reference/audio/xdsp/functions/fftpolar.md)
- [XDspActivationOptions](/reference/audio/xdspaudio/enums/xdspactivationoptions.md)
- [XDSP overview](/build/console-features/audio/overviews/xdsp-overview.md)
- [Información general de XDSP](/es/build/console-features/audio/overviews/xdsp-overview.md)
- [XDSP 개요](/ko/build/console-features/audio/overviews/xdsp-overview.md)
