You are here: Symbol Reference > MtxExpr Namespace > Classes > Vector Record > public > PolarToCart Method > Vector.PolarToCart Method (TMtxVec, TMtxVec, integer, integer, integer, integer)
MtxVec VCL
ContentsIndex
PreviousUpNext
Vector.PolarToCart Method (TMtxVec, TMtxVec, 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(AmpltVec: TMtxVec; PhaseVec: TMtxVec; AIndex: integer; PIndex: integer; Index: integer; Len: integer): TMtxVec; overload;

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

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