TOpenCLValue.CartToPolar Method

void CartToPolar(TOpenCLValue AmpltVec, TOpenCLValue PhaseVec)

Converts value from cartesian to polar coordinate form.

#NameTypeDescription
1AmpltVecTOpenCLValuesource TOpenCLValue
2PhaseVecTOpenCLValuesource TOpenCLValue

Result: stored in self (calling object)

Remarks:

Converts value from cartesian to polar coordinate form, storing the magnitude (radius) component in the AmpltVec and the phase (angle) in the PhaseVec. FloatPrecision and Dew.Math.TOpenCLBase.Complex properties of AmpltVec and PhaseVec are set automatically.

See Also: TOpenCLValue.PolarToCart