You are here: Symbol Reference > clMtxVec Namespace > Classes > TOpenCLMtxVec Class > public > PolarToCart Method > TOpenCLMtxVec.PolarToCart Method (TOpenCLMtxVec, TOpenCLMtxVec, integer, integer, integer, integer)
MtxVec VCL
ContentsIndex
PreviousUpNext
TOpenCLMtxVec.PolarToCart Method (TOpenCLMtxVec, TOpenCLMtxVec, integer, integer, integer, integer)

Convert AmpltVec elements [aIndex]..[aIndex+Len-1] and PhaseVec elements [PIndex]..[PIndex+Len-1] from polar form (radius,angle) to cartesian form (x,y).

Pascal
function PolarToCart(const AmpltVec: TOpenCLMtxVec; const PhaseVec: TOpenCLMtxVec; aIndex: integer; PIndex: integer; Index: integer; Len: integer): TOpenCLMtxVec; overload;

The results are stored as complex numbers (x=Re, y=Im) in the calling object elements [Index]..[Index+Len-1]. Size and TOpenCLBase.ComplexComplexproperties of the calling object must be set explicitly. An exception is raised if array borders are overrun/underrun.

Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!