procedure CartToPolar(AmpltVec: TOpenCLValue; PhaseVec: TOpenCLValue);
Converts value from cartesian to polar coordinate form.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | AmpltVec | TOpenCLValue | source TOpenCLValue |
| 2 | PhaseVec | TOpenCLValue | source 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 TOpenCLBase.Complex properties of AmpltVec and PhaseVec are set automatically.
See Also: TOpenCLValue.PolarToCart